Debian Codegraph @

babel-preset-modules/test/integration/redux-todos/components/Todo.js

raw symbols SCIP
1 import React from 'react'
2 import PropTypes from 'prop-types'
3
4 const Todo = ({ onClick, completed, text }) => (
5 <li
6 onClick={onClick}
7 style={{
8 textDecoration: completed ? 'line-through' : 'none'
9 }}
10 >
11 {text}
12 </li>
13 )
14
15 Todo.propTypes = {
16 onClick: PropTypes.func.isRequired,
17 completed: PropTypes.bool.isRequired,
18 text: PropTypes.string.isRequired
19 }
20
21 export default Todo