This commit is contained in:
Dmitry Vasilev
2022-11-08 21:09:42 +08:00
parent 05c76d125a
commit 1c0b918785

View File

@@ -14,7 +14,7 @@ import {h, render} from 'https://unpkg.com/preact?module';
/* external */ /* external */
import {Stateful} from './stateful.js' import {Stateful} from './stateful.js'
const Counter = Stateful({ const Fibonacci = Stateful({
getInitialState: () => ({index: 0}), getInitialState: () => ({index: 0}),
handlers: { handlers: {
@@ -35,4 +35,4 @@ const Counter = Stateful({
) )
}) })
render(h(Counter), globalThis.document.body) render(h(Fibonacci), globalThis.document.body)