Comment

Comment by nailer

Svelte. Rather than

    const [name, setName] = useState('blastonico')
    ...
    setName('nailer')
You do:

   let name = 'blastonico'
   ...
   name = 'nailer'
Also a single .svelte file includes everything you need for a component (HTML, JS, CSS), so it's easier to manage.
parent nailer 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton