Source: chasingcode.dev

React Hooks in Svelte
I came across a repo by https://twitter.com/joshnuss comparing https://github.com/joshnuss/react-hooks-in-svelte through examples, and I thought it would be fun to present it as a static website. If you haven't picked it up from my ramblings, I've been successfully avoiding React since forever because Svelte is amazing.

In my case, I wanted to use the same layout for all the hooks (the side-by-side React vs Svelte code blocks). SvelteKit makes this easy by allowing you to place all the child directories in a directory surrounded by (), in this example (hooks).

It's trivial to copy-paste each hook directory and change the title prop and the code examples.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners