Code created to a presentation about useSWR in an online event.
const { data, error, isValidating, mutate } = useSWR(key, fetcher, options)
Follow the steps below to run the project on your computer.
- Clone the project
Using SSH
git clone git@github.com:thiagonunesbatista/use-swr-presentation.git
Or using HTTP
git clone https://github.com/thiagonunesbatista/use-swr-presentation.git
- Enter in the folder of the project
Using shell
cd use-swr-presentation
- Install all the project's dependencies
npm install
npm start
This project is under the MIT license.