An open API service indexing awesome lists of open source software.

https://github.com/asrieldreemurrgm/practice_of_react_with_redux

Practical React and Redux exercise focusing on converting components from useState and Fetch API to Redux Toolkit and RTK Query. While the API previously used for data fetching is no longer online, the Redux implementation remains functional and demonstrates proper state management techniques.
https://github.com/asrieldreemurrgm/practice_of_react_with_redux

create-react-app eslint fetch-api html5 react redux redux-slice redux-toolkit redux-toolkit-query state-management typescript usedispatch useselector usestate

Last synced: about 2 months ago
JSON representation

Practical React and Redux exercise focusing on converting components from useState and Fetch API to Redux Toolkit and RTK Query. While the API previously used for data fetching is no longer online, the Redux implementation remains functional and demonstrates proper state management techniques.

Awesome Lists containing this project

README

          

React + Redux Practice



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.



🔗 Live Demo: View on Vercel



The API used fetches data from:



https://ebac-fake-api.vercel.app


The API hosts mock JSON data for products.


🚀 Technologies Used



  • React

  • Redux

  • Redux Toolkit

  • RTK Query

  • TypeScript

  • Fetch API (removed)

  • React Hooks (useState, useEffect, useDispatch, useSelector)

  • HTML5

  • ESLint


📦 Installation


npm install

▶️ Running the Project


npm start

📁 Folder Highlights




  • store/ – Redux store configuration


  • slices/ – Contains individual Redux slices for cart and favorites


  • services/api.ts – RTK Query setup


  • components/ – React components consuming Redux state


🎯 Goals



  • Practice converting local state logic to Redux Toolkit.

  • Implement asynchronous data fetching using RTK Query.

  • Structure Redux logic using best practices.