https://github.com/remrkabledev/react-redux-introduction
An introduction to using Redux as a state manager on a React application
https://github.com/remrkabledev/react-redux-introduction
Last synced: 10 months ago
JSON representation
An introduction to using Redux as a state manager on a React application
- Host: GitHub
- URL: https://github.com/remrkabledev/react-redux-introduction
- Owner: reMRKableDev
- Created: 2019-06-17T12:57:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-17T09:20:10.000Z (over 1 year ago)
- Last Synced: 2025-03-18T20:04:14.899Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.42 MB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-redux-introduction
An introduction to using Redux on a React application.
This covers the basics of Redux strict unidirectional data flow.
## Getting Started
Remember that Redux is only a tool that is used to manage an application's state!
It isn't a compulsary tool to your React applications.
Consider the data flow of your app before using Redux.
The 3 fundamental principles of Redux:
```
1. Single Source of Truth - the state of an application is stored in an object tree within a single store.
2. State is Read-Only - the only way to change the state is to emit an action.
3. Changes Are Made With Pure Functions - reducers specify how the state is transformed by actions
```
That's pretty much it!
There aren't any big configurations needed here just be sure to run the latest versions of all the named dependencies.
### Prerequisites
What things you need to install the software and how to install them
```
axios
react
react-dom
react-redux
react-scripts
redux
redux-thunk
```
### How To:
To use the app:
```
1. Fork & Clone repo.
2. Run 'npm install' on your local repo so as to get the required dependencies.
3. Launch application with 'npm start'.
```
Have fun :)