Skip to content

Instantly share code, notes, and snippets.

@mhairston
Created February 14, 2016 00:19
Show Gist options
  • Save mhairston/bea6dbf64e6c47b03000 to your computer and use it in GitHub Desktop.
Save mhairston/bea6dbf64e6c47b03000 to your computer and use it in GitHub Desktop.
Sample Markup in React
Markup in React
Javascript:
return React.createElement("p", {className: "foo"}, "Hello, world!");
JSX:
return (<p className="foo">Hello, world!</p>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment