October 2019
Intermediate to advanced
426 pages
11h 49m
English
To be able to use the json-server tool, first we need to create a db.json file, which is going to contain our full database for the server. The json-server tool will allow you to make the following:
For all modifying actions (POST, PUT, PATCH, and DELETE), the updated file will automatically be saved by the tool.
We can use our existing structure for posts, which we defined as the default state of the posts reducer. However, we need to make sure that we provide an id value, so that we can query the database later:
[ { "id": "react-hooks", "title" ...
Read now
Unlock full access