Skip to content

Redux Visualization aims to visualize Redux structure. (To compare, examine the Context-API Visualization)

License

Notifications You must be signed in to change notification settings

eminebozdag/redux-visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redux Visualization

Overview

🔗 First you can examine the project in live.

If you're new to Redux, redux-visualization is prepared for you to visualize Redux structure. You can use it as functionally as you want later, but for now I'm keeping it as simple as possible so you can easily understand the logic.

Usage

  1. Install the Redux library:

npm:

$ npm install --save react-redux
$ npm install --save-dev redux-devtools

yarn:

$ yarn add react-redux
$ yarn add @reduxjs/toolkit
  1. Define application's state: message in Parent component
  2. Define action types and action creators: in reducers/action
  3. Define reducer: in reducers
  4. Create the store: in store
  5. Provide store to App component: in index.js

Child1 and its children use "useDispatch()" and send the corresponding transaction to the corresponding reducer. Reducer updates the state at the end of the action according to the incoming action. So while it is possible to update the message when clicking on child1 and its children, it is not possible for child2 nor its children. Do not hesitate to apply it yourself, you will be able to see the difference by trying it.

Clone & Download

Press . to review editor version.

$ git clone https://github.com/eminebozdag/redux-visualization.git
$ cd redux-visualization

$ yarn install
$ yarn start

About

Redux Visualization aims to visualize Redux structure. (To compare, examine the Context-API Visualization)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published