React StateEvery component in react has a built-in state object, which contains all the property values that belong to that component.In other words, the state object controls the behaviour of a component. Any change in the property values of the state object leads to the re-rendering of the component.Note- State object is not available in functional components but, we can use React Hooks to...
React state and props
Continue Reading →