From d0d03ce720d108758ed1ff3a47d8dd2b40c206f0 Mon Sep 17 00:00:00 2001 From: colmer Date: Sun, 28 Oct 2018 15:12:03 +0400 Subject: [PATCH 1/2] Add comment form --- src/components/comment-form.js | 24 + src/components/comment-list/index.js | 2 + yarn.lock | 2168 +++++++++++++++++++++++++- 3 files changed, 2161 insertions(+), 33 deletions(-) create mode 100644 src/components/comment-form.js diff --git a/src/components/comment-form.js b/src/components/comment-form.js new file mode 100644 index 0000000..f65bd00 --- /dev/null +++ b/src/components/comment-form.js @@ -0,0 +1,24 @@ +import React, { Component } from 'react' + +class CommentForm extends Component { + state = { text: '' } + + handleSubmit = (e) => { + e.preventDefault() + } + + handleChange = (e) => { + this.setState({ text: e.target.value }) + } + + render() { + return ( +
+