hi i am using react class component and would want to know that is it possible to create a dependency array for component Did Mount, like in use Effect
Asked
Active
Viewed 297 times
2

zaid
- 25
- 7
-
I could not find anything to solve this, however I realised that my belief that I needed to use a class component was actually false - a functional component worked fine and I was able to use useEffect – JakeTheSnake Oct 21 '22 at 15:00