The state object is where you store property values that belongs to the component . When the state object changes, the component re-renders.
Read moreWhat are two possible states in JavaScript?
There are only two possible and equally simple strategies here — either derive the polar or the cartesian coordinates . Both functions are based on the same unique state so it should never be possible for tests to pass individually but fail when cross referenced.
Read more