DEV Community

Discussion on: The state you've never needed

Collapse
 
remshams profile image
Mathias Remshardt

In regard to the topic of calculated/derived state properties, I always ask myself the two questions:

  • Does it change together
  • Is it not based on coincidence

In case the answer is yes to both questions then one property can be derived from the other (the base one).

This has served me well so far ;)