I review a LOT of React code every day


I review a LOT of React code every day. Half my job is repeatedly saying two things:

1. "This state isn't necessary. The values can be derived from other state/props."

2. "This useEffect isn't necessary. The values can be derived on each render instead."

View original on X