diff --git a/src/App.js b/src/App.js index a4b18f1..3c83e64 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,5 @@ import React from 'react'; -import TodoList from './TodoList.js'; +import TodoList from './TodoList'; /** * App component. diff --git a/src/TodoItem.js b/src/TodoItem.js new file mode 100644 index 0000000..01729ac --- /dev/null +++ b/src/TodoItem.js @@ -0,0 +1,22 @@ +import React from 'react'; + +/** + * Each todo item. + * + * @param {Object} props + */ +const TodoItem = (props) => { + const { item } = props; + + return ( +