Skip to content

Instantly share code, notes, and snippets.

Paruyr yogurt1

Block or report user

Report or block yogurt1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ryanflorence / rails-ey.jsx
Last active Feb 2, 2018
Rail-ey style routes
View rails-ey.jsx
const lookup = (namespace) => {
// if you really want rails-style indirection, you'd
// need an app container that could look up modules
// by strings.
const Resources = ({ namespace }) => {
const Layout = lookup(namespace, 'layout')
return (
<Route path={`/${namespace}`} render={() => (
You can’t perform that action at this time.