← Back to context

Comment by nnoitra

5 years ago

What boilerplate does React have? Do you mean Babel?

I know...

This comment had no context...

You don't have to even

    import React from 'react';

anymore

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.