Render a React UI Based on Initial State

InstructorAndy Van Slaars

Share this video with your friends

Send Tweet

We’ll define a simple state object in the constructor of the App Component class. Once the state has been defined, we’ll replace the static elements in our rendered output with values from the component’s state. We’ll move from static items to an array, seeing how we can use functions like map to render our UI.