You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For instance in a react/redux serverside rendered application you can pass the state to the client like this:
ie:
import{renderToString}from'react-dom/server'functionhandleRender(req,res){// Create a new Redux store instanceconststore=createStore(counterApp)// Render the component to a stringconsthtml=renderToString(<Providerstore={store}><App/></Provider>)// Grab the initial state from our Redux storeconstpreloadedState=store.getState()// Send the rendered page back to the clientres.send(renderFullPage(html,preloadedState))}
For instance in a react/redux serverside rendered application you can pass the state to the client like this:
ie:
taken from: http://redux.js.org/docs/recipes/ServerRendering.html
An example that shows how to achieve the equivalent in marko would be very helpful.
I'm just starting to explore marko, amazing stuff so far, congrats
I'm trying to figure out how all the pieces would fit together to build single page isomorphic apps, kind of like what Nuxt does
The text was updated successfully, but these errors were encountered: