mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user