Deriving Client State from Server State

How to use derived state in React to keep client state and server data aligned without manual sync or effects.