3 ms·
What boilerplate does React have? Do you mean Babel?
by nnoitra 5y ago
What boilerplate does React have? Do you mean Babel?
- cphoover 5y agoI know... This comment had no context... You don't have to even import React from 'react'; anymore
- kall 5y agouseMemo 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.