Best way to pass backend data to SSR rendered view?
Looking for the "proper" way to pass data to an SSR rendered view. My first idea is setting custom properties on the window object. Is there any standard?
I use Oak as a backend
I know frameworks such as Express have a render method that can do that, but I don't know what it's doing under the hood. Oak does have a context.state object that, according to the docs should be able to send data to the frontend view, but I cannot find the data on the frontend. Whether it be in the http response
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.