Skip to content

Instantly share code, notes, and snippets.

@DylanPiercey
Created December 17, 2015 03:00
Show Gist options
  • Save DylanPiercey/aed873bf566ab3ea88b7 to your computer and use it in GitHub Desktop.
Save DylanPiercey/aed873bf566ab3ea88b7 to your computer and use it in GitHub Desktop.
An Isomorphic Rill snippet
// 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