0% found this document useful (0 votes)
10 views3 pages

React Assignments

Uploaded by

rezinsaleem1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

React Assignments

Uploaded by

rezinsaleem1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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

You might also like