← BYTES
React.js·Starter·Ref: 4.1.11
Which hook is used to run side effects (like data fetching or subscriptions) in a function component?
Have a question about this video? Mention reference 4.1.11 when you contact us.
a.useState
b.useContext
c.useMemo
d.useEffect
`useEffect` is the hook for side effects -- work that happens as a consequence of rendering but isn't part of computing the UI output itself, such as fetching data, setting up a subscription, or manually interacting with the DOM.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES4111#Reactjs