This is the code for the Custom Hook Tutorial for Lore.
First install the dependencies:
npm install
Just like the Quickstart, this project uses json-server
to provide a real API interface. Run this to command
to start the server:
npm run server
Once the server is running, you should be able to navigate to http://localhost:1337
and see a list of API endpoints.
Finally, run this command to build the project and start the development server:
npm start
Once the project is built, open a web browser and visit http://localhost:3000
.