Can I use Babel to compile JSX and export vars through the global namespace?
I do not want to start a random webpack server.
I already embrace ES6, JSX, Babel and React, and I don't care about another library that complicates such a simple task
Ultimately, I would like to export the React class and import it into another. Theoretically, it should only be blocked until the dependencies are fulfilled, and I donβt understand how it can be an anti-pattern, since all my code and external dependencies are cached locally.
This is the default behavior for <script> tags, not <script type="text/babel">
<script type="text/babel"> var message = "hello world"; </script> <script type="text/babel"> console.log(message); </script>
I am fine using ES6 export and import, but not for another random file server
javascript ecmascript-6 reactjs babeljs jsx
neaumusic
source share