diff --git a/.gitignore b/.gitignore index 20fccdd..fd07293 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,5 @@ yarn-error.log* .env.development.local .env.test.local .env.production.local + +.now \ No newline at end of file diff --git a/.now/project.json b/.now/project.json index c52546c..964a3b9 100644 --- a/.now/project.json +++ b/.now/project.json @@ -1 +1 @@ -{"orgId":"vC0ivr1sq0T0zKJytpWAmdFN","projectId":"QmU68M4LipQZeiFKBEhK7WmUX9o8wjXK3RGeuiZ8PSWDDK"} \ No newline at end of file +{"orgId":"RZuBNQFBfWtPw3WJZD7K3bSt","projectId":"QmeT1xUQTCRFLjVdW4RXLX6vVPW9baLYyyMnnGcDXeTqtp"} \ No newline at end of file diff --git a/components/todo-input.js b/components/todo-input.js index 1844e25..501c038 100644 --- a/components/todo-input.js +++ b/components/todo-input.js @@ -1,20 +1,81 @@ -import React from "react"; -import styled from "styled-components"; +import React, { useState } from 'react'; +import styled from 'styled-components'; -export default function TodoInput() { - return ( - - 리액트-투두 -
- 시간을 입력하는 칸 -
- Todo를 입력하는 칸 -
- ); +export default function TodoInput(props) { + const [newTodo, setNewTodo] = useState({ date: '', todo: '' }); + const { onSubmit } = props; + + console.log(newTodo); + + const handleFormChange = (e) => { + setNewTodo({ ...newTodo, [e.target.name]: e.target.value }); + }; + + return ( + + + + + + + +