1×
Become a member
to unlock all features
Autoplay

    Render in React Based on a Global State Object

    reactReact
    15 - 16
    reduxRedux
    3 - 4

    We’ll define a simple state object in the entry point of our application. Once the state has been defined, we’ll pass it into our root component as props and replace the static elements in our rendered output with values from the component’s props. We’ll move from static items to an array, seeing how we can use functions like map to render our UI.