reactjs_interview_q&a
June 21, 2020
What is state in React?
State of a component is an object that holds some information that may change over the lifetime of the component. We should always try to make our state as simple as possible and minimize the number of spiteful components. Let's create a user component with message state.