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:
12
docs/examples/todos-redux/src/components/Todo.js
Normal file
12
docs/examples/todos-redux/src/components/Todo.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const h = React.createElement
|
||||
|
||||
const Todo = ({ onClick, completed, text }) => (
|
||||
h('li', {
|
||||
onClick,
|
||||
style: {
|
||||
textDecoration: completed ? 'line-through' : 'none'
|
||||
},
|
||||
}, text)
|
||||
)
|
||||
|
||||
export default Todo
|
||||
Reference in New Issue
Block a user