concept new db.json file in category react
appears as: new db.json file

This is an excerpt from Manning's book React Hooks in Action.
So far in React Hooks in Action, we’ve been importing data for the bookings app example from the
static.jsonfile. But, it’s more common to fetch data from a server. To make our examples a little more realistic, let’s start doing just that. Rather than reach out to a public server, we run a JSON server locally, using a newdb.jsonfile outside of thesrcfolder. We then create a component that fetches data from that server. We cover:Creating the new db.jsonfile.