This repository demonstrates how to replicate React's useState hook using JavaScript's Proxy object. The project features a simple counter application to illustrate how proxies can be used to create reactive state management.
- Implementing React’s useState behavior for reactivity.
- Increment and decrement functionalities for the counter.
- Toast notifications for invalid operations (e.g., negative values).
- Clean and minimal UI with smooth animations.
1. Clone the repository:
git clone https://github.com/your-username/proxy-useState-demo.git2. Navigate to the project directory:
cd proxy-useState-demoOpen index.html in your preferred web browser to see the demo in action.