From 5fe4033a3142986604482e81f49f3c2a6dab94aa Mon Sep 17 00:00:00 2001 From: "Sebastian L. K. Sorensen" Date: Wed, 6 Dec 2023 16:15:45 +0100 Subject: [PATCH] example: minor --- example/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/app.js b/example/app.js index fc95bdb2..38c1c50b 100644 --- a/example/app.js +++ b/example/app.js @@ -1,7 +1,6 @@ import { mount, button, p, div, classNames } from '../lib/one' -import * as styles from './styles.module.css' +import styles from './styles.module.css' -const state = { count: 0 } function view({ state }) { return div([ p(`Count: ${state.count}`, { @@ -16,6 +15,8 @@ function view({ state }) { ]) } +const state = { count: 0 } + document.querySelectorAll('.counter').forEach(el => { mount({ el, view, state }) })