Skip to content

Instantly share code, notes, and snippets.

@lostintangent
Last active December 31, 2020 06:54
Show Gist options
  • Save lostintangent/1eb00c9ffb8ea48b521eaaf4bbf3ceb8 to your computer and use it in GitHub Desktop.
Save lostintangent/1eb00c9ffb8ea48b521eaaf4bbf3ceb8 to your computer and use it in GitHub Desktop.
GistPad - Template (React + TypeScript)
{
"scripts": [
"react",
"react-dom"
],
"styles": [
"font-awesome"
]
}
<div id="app"></div>
function App() {
return <div>
<h1>Hi, I'm GistPad 👋</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