Learn how to separate the looks from the behavior by extracting presentational components.
Yes, this is functional component signature. The support for functional components was added to React 0.14. Functional components are defined as functions of their
props, and they can't have
state or lifecycle hooks like
componentDidMount. In the new code it's best to use them when possible.
The three layer onClick callback event really confused me.
Could I just pass down the
onTodoClick props from
TodoList component to
Todo component, and called by
Does it make sense or not?