Skip to content

Instantly share code, notes, and snippets.

@cem2ran
Last active January 3, 2016 18:03
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 cem2ran/81eae0a3f446b98856bf to your computer and use it in GitHub Desktop.
Save cem2ran/81eae0a3f446b98856bf to your computer and use it in GitHub Desktop.
A React Play gist: https://react-play.surge.sh
<!DOCTYPE html><script src="https://jspm.io/system@0.19.js"></script><script>System.config({transpiler: "babel"});System.import("./index.js");</script><body></body></html>
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