DEV Community

Discussion on: What is useEffect Hook in ReactJS?How useEffect works and where to use it?

Collapse
 
abdulwaqar844 profile image
Abdul Waqar

You can create multiply sub components then import them in parent component. In subcomponent, you can use useEffect hook as well as in the parent component.