Props and State
- forms maintain internal state
- parent components will handle state of child components
- all inputs have an
onChange trigger
Props
- components take inputs called
props
- passing in
props adds them to the constructor via the super function
- can be data or functions
- parents can pass down data/funcs to children which can be envoked
- state can only be passed down the tree
- a parent can give a child a function that can then pass data to the parent state for use
additional docs
articles