State is the local state of the component which cannot be accessed and modified outside of the component. It's equivalent to local variables in a function
state use inside a class component
state change a value inside a component
If you render the page, you call setState/Hooks to update DOM(update page value)
Props, on the other hand, make components reusable by giving components the ability to receive data from their parent component in the form of props. They are equivalent to function parameters
props use to pass data in the child component
props change a value outside a component(child component)
------------------------------
https://github.com/vishnusinghchauhan...
----------------------------
Watch video ReactJS State And Props | ReactJS Tutorial For Beginners | Learn ReactJS For Beginners online without registration, duration hours minute second in high quality. This video was added by user Vishnu TechBuddy 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 256 once and liked it 6 people.