What is the difference between state and props?



What is the difference between state and props?..

Answer / Kishor Kumarmishra

State represents the data that a component manages internally, which may change over time. Props are data passed from parent components to child components as attributes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

What is one of the core types in react?

1 Answers  


How might react handle or restrict props to certain types, or require certain props to exist?

1 Answers  


When would you use a class component over a functional component?

1 Answers  


What are state and props in reactjs?

1 Answers  


What is the use of empty tags <> </>?

1 Answers  


What is Flux Concept In React?

1 Answers  


What are the pros and cons of using React?

1 Answers  


What are components in reactjs?

1 Answers  


What are the popular libraries used for flux?

1 Answers  


What are the components of redux.

1 Answers  


What is React.PropTypes?

1 Answers  


What do you understand by refs in react?

1 Answers  


Categories