Course lesson

Render UI Based on Props and State in a Class Component

In React, our UI is a function of state (and props). In this lesson, we'll create some internal state and pass some props into a class component and use them together to render some UI in the class component's render method.

Duration
4 min
Access
Free
Transcript
Available

In React, our UI is a function of state (and props). In this lesson, we'll create some internal state and pass some props into a class component and use them together to render some UI in the class component's render method.