
React - My First Simple Lovely Counter
Jefrry Arispratama / 9 Maret 2026
Overview
The Simple Counter project is my first experiment in understanding how React works. My main focus was learning how to manage dynamic data within an application using Hooks.
Through this project, I realized that manual DOM manipulation is no longer necessary. By simply updating the state, React efficiently handles UI updates automatically.
Key Learning Points
While building this counter, I explored several important concepts:
- State Management with
useState: The core of this project. I learned how to declare state, read its value, and update it based on user interactions - Increment & Decrement Logic: Implemented simple functions to increase, decrease, and reset the counter value
- Modern & Rounded Design: Applied a clean UI with rounded corners (Nova-style) to create a modern and professional look
React Journey
I am currently very interested in exploring the React ecosystem more deeply. Successfully building this counter has given me the confidence to move forward and explore more advanced features, such as:
- Conditional Rendering: Displaying different colors or messages when the counter reaches certain limits
- Props & Component Reusability: Breaking UI elements (like buttons) into reusable components for cleaner and more maintainable code
"Understanding
useStateis a crucial step. It serves as the foundation before moving on to more complex application logic."
Tech Stack
- Framework: React / Next.js
- State: useState Hook
- Styling: Tailwind CSS