Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aygunbyr/redux-demo

Redux Tutorial
https://github.com/aygunbyr/redux-demo

immer redux redux-thunk

Last synced: about 1 month ago
JSON representation

Redux Tutorial

Awesome Lists containing this project

README

        

# Redux Demo

## Three Core Principles

### First Principle

The global state of your application is stored as an object inside a single store.

### Second Principle

The only way to change the state is to dispatch an action, an object that describes what happened

### Third Principle

To specify how the state tree is updated based on actions, you write pure reducers

## Middleware

Is the suggested way to extend Redux with custom functionality

Provides a third-party extension point between dispatching an action, and the moment it reaches the reducer

Use middleware for logging, crash reporting, performing asynchronous tasks etc