ReactJS + Angular + Babel

0

Good morning I need to use ReactJS in a project that I already use AngularJS. I managed to do the integration, but without using Babel, that is, I only managed to make Angular and ReactJS communicate through pure React. Could anyone tell me how I can do this integration and use Babel ???

    
asked by anonymous 08.06.2016 / 13:33

1 answer

1

Why not include the Babel script like this (after including react and react-dom):

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script>

AnddefinethescriptsthatuseReactwiththetext/babelattribute:

<scripttype="text/babel" src="seu_react.js"></script>

    
29.07.2016 / 05:34