React simply renders components, using data from only two places: props and state.
props
state
One of the first things you learn in working with React is state. It’s pretty fundamental to React. It’s essentially data, and it could be anything!