A useState Performance Tip I Learned Surprisingly Late

How to avoid unnecessary calculations during renders