max-mapper / requirebin

write browser JavaScript programs using modules from NPM
requirebin.com
391 stars 80 forks source link

Working with React? #103

Open ee7klt opened 9 years ago

ee7klt commented 9 years ago

says i have an error on the return line

React = require('react');

var Main = React.createClass ({
  render: function () {
        return <div>hello</div>
  }
});

React.render(<Main />);
kumavis commented 9 years ago

thats because you are writing jsx not js

ee7klt commented 9 years ago

Then if I add the transformer script will i be able to use jsx?

ivansglazunov commented 8 years ago

+1

pronebird commented 7 years ago

Still does not work with JSX

mauriciopoppe commented 7 years ago

@pronebird try https://esnextb.in/