Skip to content
Ayushi Sood edited this page Jun 24, 2020 · 5 revisions

Reducers

Reducers are just pure functions that take the previous state and an action, and return the next state.


Actions

Actions are payloads of information that send data from your application to your store. They are the only source of information for the store. You send them to the store using store.dispatch().


Redux design pattern?


connect function in redux

The connect() function connects a React component to a Redux store. Parameters: mapStateToProps, MapDispatchToProps


Redux alternative?

Context API (haven't used yet)


Why do we need Redux to store state, why not react's state and props?

Difference between context api and redux

Examples of when to use redux and when not