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

https://github.com/adenugbamichael/blogpost-redux


https://github.com/adenugbamichael/blogpost-redux

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# blog-redux

## General Data Loading with Redux

Component gets rendered onto the screen


Component's 'componentDidMount' lifecycle method gets called

We call action creator from 'componentDidMount'


Action creator runs code to make an API request


API responds with data


Action creator returns an 'action' with the fetched data on the 'payload' property


Some reducer sees the action, returns the data off the 'payload'


Some reducer sees the action, returns the data off the 'payload'


Because we generated some new state object, redux/react-redux cause our React app to be rerendered