Created
August 17, 2016 05:27
-
-
Save hnry/bf96179235e05a44ea8be1e2d9bc1594 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const home = () => { | |
return <Some React Component> | |
} | |
route.define([ | |
route.get("/home", home) | |
]) | |
// above code when ran on node.js (server) will server render the react component and send back to browser | |
// above code when ran on client will mount the react component home returns | |
// basically want it to be re-usuable on server and client with little modification |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment