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