Hacker News new | ask | show | jobs
by Jcampuzano2 719 days ago
I see this all the time, even with coworkers who have worked with react for years and when I question it they have such a hard time understanding what the issue is with this.

Not using derived state or in other words not using the minimal state required is one of the most common issues I end up seeing, people just add state everywhere not realizing a lot of the time additional state is not needed and every little variable doesn't need to be separate state.

1 comments

To be fair to React, this is 100% the developers' fault. State must be minimal, by definition.