What are the difference between pros and state?



What are the difference between pros and state?..

Answer / Rashmi Meena

Props are read-only, external data passed to a component that is used to configure it. State, on the other hand, is internal data that can be modified by the component itself in response to user events or other changes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

Differentiate between states and props.

1 Answers  


How state is useful for react?

1 Answers  


What is Context?

1 Answers  


Why is it necessary to capitalize component names?

1 Answers  


What is arrow function in react? How is it used?

1 Answers  


Which feature can we use to cause a component to render only when its id changes?

1 Answers  


How can you embed two or more components into one?

1 Answers  


Which is better angular or react js?

1 Answers  


How to set up routing in reactjs. Explain with the help of step by step approach?

1 Answers  


What is jsx and how jsx can help applications in react.js?

1 Answers  


What is the difference between npm & npx?

1 Answers  


What is Babel in React js?

1 Answers  


Categories