Last active
April 18, 2017 12:06
-
-
Save rakibulalam/9c8167b508ebde8e12014eed39dc37b0 to your computer and use it in GitHub Desktop.
ReactLayout for Meteor flow Router.
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
/* | |
add meteor npm --save react, react-dom, flow-router, react-layout | |
*/ | |
import React from 'react'; | |
import { Meteor } from 'meteor/meteor'; | |
import { render } from 'react-dom'; | |
/* | |
keep all ui imports/ui | |
*/ | |
import App from '../imports/ui/App.jsx'; | |
/* | |
call from imports ui layouts | |
*/ | |
import {mainLayout} from '../imports/ui/layouts/mainLayout.jsx'; | |
FlowRouter.route('/',{ | |
action(){ | |
ReactLayout.render(mainLayout, { | |
content: <App /> | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment