I'm looking for a "proper" way of sending backend data to frontend when serving the view. I know many templating engines do this, but is there a way to do it frontend-agnosticly?
Context.state seems to be for this exact purpose if I understand the docs correctly, but the doc doesn't go into how to retrieve this data on the frontend.
I'm looking for a "proper" way of sending backend data to frontend when serving the view. I know many templating engines do this, but is there a way to do it frontend-agnosticly?
Context.state seems to be for this exact purpose if I understand the docs correctly, but the doc doesn't go into how to retrieve this data on the frontend.