Remix.run Logo
adjejmxbdjdn 3 hours ago

I lived there idea of hooks when they were introduced.

But they’ve honestly not worked out.

React works have been a lot better if the React team has figured out what useEffect was supposed to be right at the beginning, or at least when they changed what it was supposed to be used for they documented that clearly instead of gaslighting devs into believing nothing has changed.

Also, hooks aren’t a thing. Each hook is its own API and concept. Grouping them under the umbrella term “hooks” gave the wrong impression that it was a single concept, but there’s No conceptual similarity between ushered, useState or useEffect. The only similarity are the restrictions on their use and nomenclature.

pjmlp 3 hours ago | parent [-]

In every single project I worked on using Next.js as a kind of full stack framework, eventually I need to do something on the FE as well, and end up debugging a spaghetti of useSomething() until I figure out where to actually implement what I need.