News for hackers. Stuff that matters.
Re:Rich Harris joins Vercel to work on Svelte full time by nnoitra on Thursday November 11, 2021 @04:02PM (#29193140)
What boilerplate does React have? Do you mean Babel?
Re:Rich Harris joins Vercel to work on Svelte full time by cphoover on Thursday November 11, 2021 @04:49PM (#29193635)
I know...

This comment had no context...

You don't have to even

    import React from 'react';
anymore
Re:Rich Harris joins Vercel to work on Svelte full time by kall on Thursday November 11, 2021 @08:59PM (#29195544)
useMemo and useCallback do feel a little boilerplate-y. Something is slow, I wrap it in the thing, I let eslint fill the dependencies and there‘s no big downside to doing it all the time anyway. Feels like something I maybe don‘t need to be typing?

useState is also something svelte eliminates, though I personally prefer to keep that explicit.