What is the difference between state and props in react js?
Answer / Vaishali Vishnoi
{"state": "In React, the state is a data structure that stores the local state of a component. It can be mutated only by calling setState().",n"props": "Props (short for properties) are used to customize components. They are read-only and cannot be modified from within the component itself. Props are passed down through the component tree from a parent to a child."
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you understand by “single source of truth”?
How to add google analytics for react router?
What are refs in reactjs? When to use it.
What is a router in react.js?
What are the life cycle of reactjs?
What is REFS in React
Explain the components of Redux?
How can we do server-side rendering in React?
What is the purpose of render() in react?
What is a state in reactjs and how is it used?
How events are different in react?
What are pure functional components?