From c4394dd747e67d13f53daf7624c3506da9ced6e1 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 11 Apr 2020 03:10:45 +0300 Subject: [PATCH] CoursesPage update --- src/components/courses/CoursesPage.js | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/components/courses/CoursesPage.js b/src/components/courses/CoursesPage.js index fc0fe72..c7f9e6b 100644 --- a/src/components/courses/CoursesPage.js +++ b/src/components/courses/CoursesPage.js @@ -1,8 +1,30 @@ import React from "react"; class CoursesPage extends React.Component { + state = { + course: { + title: "" + } + }; + + handleChange = (event) => { + const course = { ...this.state.course, title: event.target.value }; + this.setState({ course }); + }; + render() { - return

Courses

; + return ( +
+

Courses

+

Add Course

+ + +
+ ); } }