Back

Version 26

12/9/2024
/** @jsxImportSource https://esm.sh/react */
import { React, render } from "https://esm.town/v/jxnblk/ReactStream";

function App() {
const [count, setCount] = React.useState<number>(0);

return <h1>test</h1>;

return (
<html>
<head />
<body>
<h1>Hello</h1>
<pre>{count}</pre>
<button onClick={() => setCount(count - 1)}>- Dec</button>
<button onClick={() => setCount(count + 1)}>+ Inc</button>
</body>
</html>
);
}

export default render(App, import.meta.url);
jxnblk-reactstreamdemo.web.val.run
Updated: December 9, 2024