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/Reac...
----------------------------
In questa pagina del sito puoi guardare il video online ReactJS State And Props | ReactJS Tutorial For Beginners | Learn ReactJS For Beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Vishnu Chauhan 01 gennaio 1970, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 257 volte e gli è piaciuto 6 spettatori. Buona visione!