Pre-configured SystemJS + Unpkg setup for easy prototyping
Just include a link to ax-system script on unpkg CDN.
<script src="https://unpkg.com/ax-system"></script>
ES6 and JSX are included (via client-side Babel plugin). The dependencies automagically pulled by SystemJS directly from unpkg CDN.
<script type="x-module">
import React from 'react';
import ReactDOM from 'react-dom';
let hello = <b>Hello, JSX!</b>;
ReactDOM.render(hello, document.getElementById('app'));
</script>
Old-style ES5/require() also work.
<script type="x-module">
var $ = require('jquery');
$('#app').text('Hello!');
</script>
Load external files via System.import()
-
<script>
System.import('./app.js'); // async, returns promise
</script>
Load CSS, HTML (via pre-configured SystemJS plugins) -
require('./app.css'); // injected as <style> tag
var template = require('./app.html');