This is demo for unirolldown
Highlighted code and export App
component.
/* @jsx h */ import { h } from "preact"; export function App() { return <div>hello</div> }
Import App
and bundle it. Code will be executed on iframe.
/* @jsx h */ import { h, render } from "preact"; import { App } from "./App"; render(<App />, document.body);
Just run console
console.log("log"); console.warn("warn"); console.error("error");