javascript - Meteor React External JS Files -


i have html template bought themeforest, index.html of template has js files included in following order:

<!-- scripts -->     <script src="js/vendor/jquery-2.1.0.min.js"></script>     <script src="js/helper.js"></script>     <script src="js/vendor/headsup.js"></script>     <script src="js/vendor/chart.min.js"></script>     <script src="js/vendor/jquery.mixitup.min.js"></script>     <script src="js/vendor/jquery.swipebox.min.js"></script>     <script src="js/vendor/masonry.min.js"></script>     <script src="js/vendor/swiper.min.js"></script>     <script src="js/vendor/materialize.min.js"></script>     <script src="js/main.js"></script>   </body> 

how , should include these external js files in meteor react application?

as mentioned in meteor documentation, can create compatibility folder on client.

this folder compatibility javascript libraries rely on variables declared var @ top level being exported globals. files in directory executed without being wrapped in new variable scope. these files executed before other client-side javascript files.

it recommended use npm 3rd party javascript libraries , use import control when files loaded.


Comments