411 Week 5 — Redux
This week we delve into learning about Redux!
Discuss in words something you learned in class today or this week. | mapStateToProps
and mapDispatchToProps
.
What is Redux? | It is a predictable state container for JS applications.
What is ‘Store’ in Redux?| It holds the state tree of the application.
How is state changed in Redux? | A reducer takes the current state tree and an action as arguments and returns the resulting state tree.
What is the difference between a Presentational component and a Container component? | Presentational components are concerned with how things look, while container components run logic.
What is the second argument that can optionally be passed to setState
and what is its purpose? | A callback function which will be invoked when setState has finished and the component is re-rendered.
Which (if there is) node library method could you use to solve the algorithm problem you solved last night in your pre-homework. |counter
Which (if there is) node library method could you use to solve the algorithm problem you solved in class tonight? | react-minimal-pie-chart
What is your opinion of currently popular frameworks/libraries? List and provide your thoughts. | Redux often feels like you’re adding an extra step to a React application to be honest. Libraries are really helpful to add a lot of functionality, presentability, and workable UI more efficiently than coding everything from scratch.