-
Props
-
useState
-
Controlled Inputs / Forms
-
useEffect
-
Fetch GET and POST
-
React Router
Fork and clone this repository. Begin by running:
npm install
npm start
To run the json-server run this command in a seperate terminal:
json-server --watch db.json -p 5555
In order to fetch the data you'll make your fetches to http://localhost:5555
.
Some things have already been built for you such as the router provider (we'll go over this).
To begin, we'll change the db.json to be tailored to a project of your choice. From there build out an index page to show all items and then a form to POST
a new item.