Skip to content

Commit

Permalink
example: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Dec 6, 2023
1 parent e0d5541 commit 5fe4033
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions example/app.js
Original file line number Diff line number Diff line change
@@ -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}`, {
Expand All @@ -16,6 +15,8 @@ function view({ state }) {
])
}

const state = { count: 0 }

document.querySelectorAll('.counter').forEach(el => {
mount({ el, view, state })
})
Expand Down

0 comments on commit 5fe4033

Please sign in to comment.