-
What is the difference between props and state in React?
-
When would you use state instead of props?
-
Assuming
UserDetail
is a component, what will its props be if it's rendered as follows:const user = {name: 'Spider Man', age: 32} <UserDetail title="Profile Page" dog="Fido" user={user} />
-
Take a look at
https://learning.flatironschool.com
. Pretend you were going to recreate a specific page. What top level components would you have? What props would they receive and what state would they own? What components would they have as children?
learn-co-curriculum / react-hooks-dq-props-state Goto Github PK
View Code? Open in Web Editor NEWLicense: Other