diff --git a/components/AddTodoInput.js b/components/AddTodoInput.js
new file mode 100644
index 0000000..83357a0
--- /dev/null
+++ b/components/AddTodoInput.js
@@ -0,0 +1,32 @@
+class AddTodoInput extends React.Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ text: ''
+ };
+ }
+
+ handleInput(e) {
+ this.setState({ text: e.target.value });
+ }
+
+ handleSubmit(e) {
+ e.preventDefault();
+ addTodo(this.state.text);
+ this.setState({ text: '' });
+ }
+
+ render() {
+ return (
+
+ );
+ }
+}
+
+ReactDOM.render(, document.querySelector('[data-react-component="AddTodoInput"]'));
diff --git a/components/RemoveCompletedButton.js b/components/RemoveCompletedButton.js
new file mode 100644
index 0000000..136f305
--- /dev/null
+++ b/components/RemoveCompletedButton.js
@@ -0,0 +1,25 @@
+class RemoveCompletedButton extends React.Component {
+ handleClick() {
+ removeCheckedItems();
+ }
+
+ render() {
+ if(this.props.show) {
+ return (
+
+ );
+ }
+ return null;
+ }
+}
+
+RemoveCompletedButton.defaultProps = {
+ show: false
+};
+
+ReactDOM.render(
+ ,
+ document.querySelector('[data-react-component="RemoveCompletedButton"]')
+);
diff --git a/index.html b/index.html
index c94c32c..920c01d 100644
--- a/index.html
+++ b/index.html
@@ -11,15 +11,15 @@
To Do List
-
-
+
+
+
+
+
+
+