Last active
August 29, 2015 14:21
-
-
Save jeyraof/56993a8c4ebc041097aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Potentially unhandled rejection [2] Error loading "test" at test.js | |
Error evaluating test.js | |
Uncaught SyntaxError: Unexpected token < (WARNING: non-Error used) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="/static/vendor/system.js"></script> | |
<script> | |
System.config({ | |
paths: { | |
"babel": "/node_modules/babel-core/browser.min.js", | |
"react": "/node_modules/react/dist/react-with-addons.min.js" | |
}, | |
transpiler: "babel" | |
}); | |
System.import("test"); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react'); | |
var HelloMessage = React.createClass({ | |
render: function() { | |
return <div>Hello {this.props.name}</div>; // Error part | |
} | |
}); | |
React.render(<HelloMessage name="John" />, document.getElementById('r-content')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment