Este README também está disponível em Português.
This project is a practical exercise on using React with Redux Toolkit,
demonstrating the conversion of components from useState
and Fetch API
to Redux
and RTK Query
.
https://fake-api-tau.vercel.app/api/ebac_sports
The error returned is:
404: NOT_FOUND Code: DEPLOYMENT_NOT_FOUND
The API hosted mock JSON data for products. Despite this, the code structure and logic remain fully functional and demonstrate a correct implementation of Redux state management.
- React
- Redux
- Redux Toolkit
- RTK Query
- TypeScript
- Fetch API (removed)
- React Hooks (useState, useEffect, useDispatch, useSelector)
- HTML5
- ESLint
npm install
npm start
store/
– Redux store configurationslices/
– Contains individual Redux slices for cart and favoritesservices/api.ts
– RTK Query setupcomponents/
– React components consuming Redux state
- Practice converting local state logic to Redux Toolkit.
- Implement asynchronous data fetching using RTK Query.
- Structure Redux logic using best practices.