Skip to content

Commit

Permalink
example(todo): simplify setup()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Nov 27, 2023
1 parent 81ffa7e commit 5f98bed
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions example/components/todo/TodoList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TodoItem, TodoInput } from '.'
import { TodoInput, TodoItem } from '.'
import { html } from '../../../lib/one'

const TodoList = {
Expand Down Expand Up @@ -30,10 +30,8 @@ const TodoList = {
},
},
setup({ query, state }) {
const item = query('todo-item')

item.for(['items', 'id'])
query('todo-item').for(['items', 'id'])
}
}

export { TodoList }
export { TodoList }

0 comments on commit 5f98bed

Please sign in to comment.