facebookarchive / react-meteor

React rendering for Meteor apps
948 stars 113 forks source link

How to use npm packages? #69

Open gutenye opened 9 years ago

gutenye commented 9 years ago

React use npm packages, while meteor use its own package system. For example react-d3-components is only avaliable on npm, so how can I use it in react-meteor?

beverlycodes commented 9 years ago

I've been resorting to downloading pre-built distributables when available in the package repos, such as react-d3-components.min.js and placing them somewhere in the lib folder of my Meteor apps so that they load before I need them. It's not an ideal solution, but a lot of modern techniques just don't work in Meteor since it uses its own custom packaging system and does not include any kind of real module support.

cranesandcaff commented 9 years ago

Try this

https://atmospherejs.com/cosmos/browserify