React State

March 29, 2020

Props are immutable and once the component is rendered you can not change the value of the Prop

So how to do change the UI values ?

This is where React sate comes into play
When the state object changes, the component re-renders

How to create state object