4 ms·
> a constant worry that I'll miss a dependency in my useEffect call and end up crashing my browser session. As an fyi for anyone not aware, there are eslint/ts
by protonimitate 6y ago
> a constant worry that I'll miss a dependency in my useEffect call and end up crashing my browser session.
As an fyi for anyone not aware, there are eslint/tslint plugins for this to help avoid it.
- wbobeirne 6y ago100% this, I often find myself getting tripped up when reading people's complaints about the JS / React ecosystem until I remember that TypeScript and the ESLint (and typescript-eslint and eslint-plugin-react) recommended config isn't standard in everyone's projects. It saves you from a ton of these headaches. Not that the answer to a complaint of a complex toolchain is more tools in the chain, but it's a wonderful development experience once you develop a collection of tools you really like.
- j-krieger 6y agoYou don't even need those. React itself will warn you directly in the browser console