Hi,
I’ve been playing with the new React and Meteor integration and created a boilerplate app extracted from my bigger app.
It can be found here: https://github.com/optilude/meteor-react-example
It demonstrates:
- Using the
reactpackage to integrate Meteor and React - Fetching data from reactive Meteor data sources using the
ReactMeteorData
mixin and thegetMeteorData()method - Routing using
ReactRouter - A basic UI using
Twitter BootstrapandReactBootstrap - Login, change password, enrollment emails and user management using the Meteor
accounts system - ES6 syntax using the
Babeltranspiler (.es6.jsfiles) and ReactJS’
transpiler (.jsxfiles) - Tests using
Velocity. - Typed collections / validation using
aldeed:collection2. - Client- and server-side dependencies loaded from NPM and served with
browserify. - JSHint configuration to allow editors like Sublime Text or Atom to warn
about potential problems early
I’d be grateful for any feedback on the patterns explored here.
Martin