From 1c0b9187853758745db358fdd7914ce820c18d1a Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Tue, 8 Nov 2022 21:09:42 +0800 Subject: [PATCH] fix --- docs/examples/preact/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)