facebookarchive / react-meteor

React rendering for Meteor apps
948 stars 113 forks source link

script src? #34

Closed TylerL-uxai closed 9 years ago

TylerL-uxai commented 9 years ago

Should the html include the jsx script in the < head >, or is that automatically done with meteor?

This confused me when I first read the example and perhaps the community would benefit from a comment in the html code. Just a suggestion!

Thanks for your help

benjamn commented 9 years ago

Yep, Meteor bundles all your JavaScript together automatically and sends it down to the client: http://docs.meteor.com/#/full/structuringyourapp. Check out the HTML source of the example page, and you'll see a bunch of <script> tags (note: in production they are all combined into one file).