Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Last active March 12, 2020 16:11
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 elijahmanor/51c0a1ffda41f9b9d87170618044582d to your computer and use it in GitHub Desktop.
Save elijahmanor/51c0a1ffda41f9b9d87170618044582d to your computer and use it in GitHub Desktop.
react-playground
<div id="app"></div>
{
"scripts": [
"react",
"react-dom",
"https://cdnjs.cloudflare.com/ajax/libs/d3-axis/1.0.10/d3-axis.min.js",
"https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js"
],
"styles": [
"font-awesome"
]
}
function App() {
return <div>
<h1>Hi, I'm GistPad { _.random() } 👋</h1>
<p>Feel free to edit the HTML, JavaScript and CSS in this playground. The preview will update in real-time, so that you can visually explore your ideas.</p>
<button onClick={() => alert("Hi!")}>Say Hi <span className="fa fa-heart" /></button>
</div>;
}
ReactDOM.render(<App />, document.getElementById("app"));
body {
background-color: lightblue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment