Files
Implement useState Hook
Create a custom useState hook from scratch
Intermediate+150 XP
App.tsx
Terminal
$ npm start
Starting development server...
Compiled successfully!
You can now view the app in the browser.
Local: http://localhost:3000
Preview
Counter: 0
Instructions
1. Create a custom useState hook in the useState.ts file
2. Your hook should return a tuple with the current state and a setter function
3. The counter in the preview should work correctly when clicking the button
4. Do not use React's built-in useState