Yes, the naming isn't optimal, I think.
useState is pretty straight-forward, but useEffect not so much.
useState
useEffect
On the other hand, they are basic building blocks used to create more sophisticated hooks that would have clearer names.
useFetch, useHttp, useTrackingApi, useFacebookLogin etc.
useFetch
useHttp
useTrackingApi
useFacebookLogin
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
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.
Yes, the naming isn't optimal, I think.
useState
is pretty straight-forward, butuseEffect
not so much.On the other hand, they are basic building blocks used to create more sophisticated hooks that would have clearer names.
useFetch
,useHttp
,useTrackingApi
,useFacebookLogin
etc.