How to server side render react output target ? Do we have to follow the same stencil hydrate output or do we have options for it?

How can we use react output target for server side rendering ? Since we are trying to include that react output target directly in our react app and it is working only in client side. Do we need to include stencil hydrated output ? or do we have options for it.