diff --git a/src/components/courses/CoursesPage.js b/src/components/courses/CoursesPage.js index 86735d8..8c0803b 100644 --- a/src/components/courses/CoursesPage.js +++ b/src/components/courses/CoursesPage.js @@ -31,13 +31,17 @@ class CoursesPage extends React.Component { value={this.state.course.title} /> + {this.props.courses.map((course) => ( +
{course.title}
+ ))} ); } } CoursesPage.propTypes = { - dispatch: PropTypes.func.isRequired + dispatch: PropTypes.func.isRequired, + courses: PropTypes.array.isRequired }; function mapStateToProps(state) {