Created
December 17, 2015 03:00
-
-
Save DylanPiercey/aed873bf566ab3ea88b7 to your computer and use it in GitHub Desktop.
An Isomorphic Rill snippet
This file contains hidden or 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
// Lets register another route. | |
app.get("/away", ({ req, res })=> { | |
res.body = <AwayPage/>; | |
}); | |
// And make another simple React component. | |
function AwayPage (props) { | |
return ( | |
<html> | |
<head> | |
<title>My App - Away</title> | |
</head> | |
<body> | |
Well... Theres not much here. | |
<a href="/">Take me back!</a> | |
<script src="/app.js"/> | |
</body> | |
</html> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment