DEV Community

Discussion on: I made a mistake implementing a React Hook and got a denial of service from my backend

Collapse
itaditya profile image
Aditya Agarwal

I think both are same in this regard. React let's us hook arbitrary code between it's render cycle. Before we assigned a function to cDM etc. and now we do it by passing a callback to useEffect