This is a simple application build upon React, Meteor 1.3 (Beta preview with ES6 features) and Twitter Bootstrap 4.0.0 (Alpha preview).
What's the difference? The 1.3 release of Meteor is comming soon, and it will be the game changer. It comes with ES2015 modules support and direct access to NPM modules.
The following example shows how to easily build simple application using NPM modules on both client and server.
- flow-router: carefully designed client side router for Meteor.
- bootstrap: the most popular front-end framework for developing responsive, mobile first projects on the web.
- fontawesome: scalable vector icons that can instantly be customized.
- react and react-dom: a JavaScript library for building user interfaces.
- react-mounter: lets you mount React components to DOM easily.
- react-komposer: compose React containers and feed data into components.
The application requires Meteor and NodeJS.
curl https://install.meteor.com/ | sh
After installing Meteor simply clone the repository and execute meteor
.
git clone https://github.com/schabluk/none.git
cd none
npm install
meteor
import React from 'react'
const Main = () => (
<div className="row">
<div className="col-sm-12">Hello there!</div>
</div>
)
export default Main
import React from 'react'
import Header from './header.jsx'
import Footer from './footer.jsx'
const Layout = ({content}) => (
<div>
<Header />
<div className="container">{content}</div>
<Footer />
</div>
)
export default Layout
import React from 'react'
import {mount} from 'react-mounter'
import Layout from './layouts/default.jsx'
import Main from './components/main.jsx'
FlowRouter.route("/", {
name: "main",
action() {
mount(Layout, {
content: (<Main />)
})
}
})