Last active
January 3, 2016 18:03
-
-
Save cem2ran/81eae0a3f446b98856bf to your computer and use it in GitHub Desktop.
A React Play gist: https://react-play.surge.sh
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
<!DOCTYPE html><script src="https://jspm.io/[email protected]"></script><script>System.config({transpiler: "babel"});System.import("./index.js");</script><body></body></html> |
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
import React from 'react' | |
import {render} from 'react-dom' | |
import {github} from 'npm:cem2ran/index.json!json' | |
const Greetings = ({name}) => <h1>Greetings from {name}!</h1> | |
render( | |
<Greetings name={github}/>, | |
document.body.appendChild(document.createElement("div")) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment