mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-14 05:14:28 -08:00
redux example rename
This commit is contained in:
17
docs/examples/todos-redux/src/components/TodoList.js
Normal file
17
docs/examples/todos-redux/src/components/TodoList.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Todo from './Todo.js'
|
||||
|
||||
const h = React.createElement
|
||||
|
||||
const TodoList = ({ todos, toggleTodo }) => (
|
||||
h('ul', null,
|
||||
todos.map(todo =>
|
||||
h(Todo, {
|
||||
key: todo.id,
|
||||
...todo,
|
||||
onClick: () => toggleTodo(todo.id),
|
||||
})
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
export default TodoList
|
||||
Reference in New Issue
Block a user