I hadn’t seen that before. It doesn’t seem too much simpler at first glance but I will say the differences when needing to destroy isn’t something I’ve worked with. So it could be better in those cases.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good write up on this. Have you seen/used the useAsyncEffect hook? It has a very similar signature as
useEffect
so it's a simple drop in.I hadn’t seen that before. It doesn’t seem too much simpler at first glance but I will say the differences when needing to
destroy
isn’t something I’ve worked with. So it could be better in those cases.