Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with React? #103

Open
ee7klt opened this issue Oct 29, 2015 · 5 comments
Open

Working with React? #103

ee7klt opened this issue Oct 29, 2015 · 5 comments

Comments

@ee7klt
Copy link

ee7klt commented Oct 29, 2015

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
Copy link
Collaborator

kumavis commented Nov 3, 2015

thats because you are writing jsx not js

@ee7klt
Copy link
Author

ee7klt commented Nov 3, 2015

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

@ivansglazunov
Copy link

+1

@pronebird
Copy link

Still does not work with JSX

@mauriciopoppe
Copy link
Collaborator

@pronebird try https://esnextb.in/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants