facebookarchive / react-meteor

React rendering for Meteor apps
948 stars 113 forks source link

Any reason not to browserify this package? #100

Open colvint opened 9 years ago

colvint commented 9 years ago

Great package! React + Meteor is a sweet combo. Since all concerns are client-side here, I've used cosmos-browserify to create a completely client-side, require-based package here. Really cleans up the dependency management.

Example use of the package here.

burdiyan commented 9 years ago

@colvint why can't you use React from NPM in that case?

colvint commented 9 years ago

@burdiyan I do use React from NPM: https://github.com/colvint/meteor-react-bootstrap/blob/master/package.js#L10

And that would be enough to use the library server side. But to use it client side you need to browserify it.

colvint commented 9 years ago

@burdiyan Just saw that the Meteor Development Group (MDG) has an official react package which does what you want. Note: it also uses cosmos:browserify to export React to the client. I'm probably switching over to that.