Assignments
1. Create a reusable component for this UI.
- Props
- Array.map()
- Key prop
- Template literal / String interpolation
2. Build a simple React App which increment/decrements count on-screen when buttons
are clicked.
- State and useState
- onClick
3. Enhance the counter application: -
It should display user information related to count value.
- Use public API eg : https://jsonplaceholder.typicode.com/users/1
- useEffect
- axios/fetch
- loading/success/error states
4. Forms
clicking the submit button should print the input value in console.
- onSubmit / onClick
- Form validation
- Focus the input element using useRef hook
- controlled and uncontrolled components