basic contact app following CRUD operation with an API hosted link - https://melodic-daffodil-391d53.netlify.app/
- components
- styles
- context
- customHooks
-
First of all i use command
npx create-react-app <my-project>
-
Then i create this folder structure show above
-
Then i create a
AddContact component
andContactList component
and add this two component inApp component
-
then i create create
Contact component
and add toContactList component
-
Then i create context
-
Then i create custom hook
- To display contact
- To add contact
- To update contact
- To remove contact
more details: https://jsonplaceholder.typicode.com/guide/
- to create and read , use https://jsonplaceholder.typicode.com/users
- to update and delete , use https://jsonplaceholder.typicode.com/users/id, id=1,2,.....