Let’s say we have an array of todos and want to get the first two elements in that array. An old way would be to do it like this: Suppose we have another component where we want to maintain some state and use it rein another component. Hinein such a situation, the component where we maintain the state to pass it to another component becomes th