Deloitte Interview Question

What is state in React?

Interview Answer

Anonymous

Jan 26, 2022

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 stateful components.