You’ll also learn about the different ways we can create and store lists of values, like arrays, linked lists, and trees. You may wonder, ‘What’s the point of having many different algorithms if they all do the same thing? This is when you’ll learn about measuring the efficiency of an algorithm with Big O notation.
The mapStateToProps function retrieves the state from the store and passes it as a prop to the component. Then, the object property can be instantiated in the component just like any other prop. With the component now connected to the store and fetching the state, the component will be re-rendered each time the state changes.