Redux Flashcards

1
Q

How does React & Redux work together

A

One Redux store manages state. React Components subscribe to it. They issue state changes which go up into Redux. Redux keeps the record of the latest state for components.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What to use to make Redux work with React?

A

react-redux package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does react-redux do? It allows to…

A

pass Redux state and dispatch to React components as props

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

You cannot use this in in a constructor until…

A

after you call super(props)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

passing props to super is necessary|unnecessary

A

unnecessary, but advised for less confusion and bugs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

creating Redux store

A

you’re just declaring a few functions as const, specifically reducer function - and then you const the store with Redux.createStore and pass it the reducer function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly