8
Cyanide
3y

https://devrant.com/rants/5155862/...

Alright! I take it back. I don’t like “this”. Hooks are better. But are they the best? We will see.

Namaste.

Comments
  • 3
    I don't like hooks because they depend on global state. I really like the syntax and I despise Javascript's context semantics enough that I'd prefer if hooks took a first argument which is some opaque token forwarded by the component that represents the current render, but global state is a terrible idea in my opinion.
  • 1
    I also like the aspect of hooks that they leave all control regarding persistence and state with the framework, which makes React's job as a scheduler way easier.
  • 0
    @BixelPitch Just waiting for SvelteKit to become stable.
Add Comment