- What are the similarities between context, redux, and local state?
- What is the difference between an action and an action creator in Redux?
- In your own words, what problem does context and Redux aim to solve?
- Please fill out the following table.
Tool | When should we use this over the others? |
---|---|
Context | |
Redux | |
Local state |
.5 Which of these should you prefer to use the most and why? Please give more than a one sentence answer.
Aland, Marshall, Hala, Huda
action creator is a function that returns an action
redux: when we have dynamic data with lots of repetitions
local state: when we have one (or few) components that can share the same data