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 }) })