On a server. Doesn't have to be the same one but isn't all html rendered in a server? I don't understand the question.
Discussion
in react or in client side apps the DOM is generally created on the client side.
data is requested from the server but the html is created on the client.