/react-swr

Primary LanguageTypeScript

React-SWR

Small app to test SWR-Vite-MSW, this app uses SWR to fetch data and provide state, in prod this should be done in a separate view and use functional components.

Usage

To start using the application run npm install and then to run it locally execute npm run dev, alongside this application you can run it.

Requirements

  • Node >=v14
  • npm

Testing

  • Run npm test to run the available test suits
  • Test coverage provided using C8 can be generated trough npm run test:coverage