react-swr-example
A simple product store built with React SWR caching
How to run the project?
Start the RESTful mock server (Requires json-server
):
json-server --watch --port=5000 --delay=1000 db.json
Install dependencies:
npm i
# --- or ---
yarn
Run the app:
npm start
# --- or ---
yarn start