Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: