Functions as Props
JS Functions are 1st Class Objects.
This means they can be passed to a function as argument, returned from it & assigned to a variable.
Forms in React
useEffect( )
The Effect Hook lets you perform side effects in function components.
Data fetching, setting up a subscription, and manually changing the DOM in React
components are all examples of side effects.
0 Comments