Make rendering into an action which doesn't alter state.