Skip to content

Instantly share code, notes, and snippets.

@reaktivo
Created April 26, 2020 18:20
Show Gist options
  • Save reaktivo/30e0bb6dc4bb85125554537b619a56c0 to your computer and use it in GitHub Desktop.
Save reaktivo/30e0bb6dc4bb85125554537b619a56c0 to your computer and use it in GitHub Desktop.
Preact Playground
<!doctype html>
<main />
<script type="module">
import { html, render } from 'https://unpkg.com/htm/preact/standalone.module.js';
const App = () => {
return html`<h1>Hello world</h1>`;
}
render(html`<${App}/>`, document.querySelector('main'));
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment