How does 'likely' and 'unlikely' attributes helps us to optimize the execution times in C++20
How does ‘likely’ and ‘unlikely’ attributes helps us to optimize the execution times in C++20
June 28, 2022
What are advantages of using React Hooks?
What are advantages of using React Hooks?
July 12, 2022

July 5, 2022

What is the difference between state and props?

Both props and state are plain JavaScript objects. While both of them hold
information that influences the output of render, they are different in their
functionality with respect to component. i.e,
Props get passed to the component similar to function parameters
State is managed within the component similar to variables declared within a function.

What is the difference between state and props?
This website uses cookies to improve your experience. By using this website you agree to our Data Privacy Statement
Read more