October 2019
Intermediate to advanced
426 pages
11h 49m
English
Finally, we are going to define the TodoFilter component. In the same file, we are going to define another component for the TodoFilterItem.
Let's start defining the TodoFilterItem and TodoFilter components:
class TodoFilterItem extends React.Component { render () {
const { name } = this.props
const style = { color: 'blue', cursor: 'pointer' }
return <span style={style}>{name}</span>Read now
Unlock full access