Skip to content

Instantly share code, notes, and snippets.

@dagingaa
Last active September 15, 2016 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagingaa/45bcae1b66ed28cbe5ef to your computer and use it in GitHub Desktop.
Save dagingaa/45bcae1b66ed28cbe5ef to your computer and use it in GitHub Desktop.
SystemJS + React PoC
import React from 'react';
class Hello {
render() {
return React.createElement("div", null, "Hello ", this.props.name);
}
}
Hello.prototype.displayName = "Hello";
var HelloElement = React.createClass(Hello.prototype);
React.render(React.createElement(HelloElement, {name: "World"}), document.body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment