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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners