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

+ + +
+ ); } }