Comment

Comment by recursive

> Hooks are better because they allow you to reuse component logic, impossible with class components

I've heard this said before, but I don't understand. Could you give an example of component logic that can't be reused under class components?

parent recursive 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton