Same as https://github.com/facebook/react/issues/10103, but for the server renderer. You can look at implementation in https://github.com/facebook/react/pull/11168 and do something very similar in `ReactPartialRenderer.js`.
return {
        foo: [1, 2, 3],
        bar: {a: 4, b: 5, c: 6},
      };
    }
    let renderCalls = 0;
    const initialSettings = getInitialState();
    class Component extends React.Component {