diff --git a/client/src/components/MediaList.js b/client/src/components/MediaList.js index 4a47e8d..1045a14 100644 --- a/client/src/components/MediaList.js +++ b/client/src/components/MediaList.js @@ -6,32 +6,40 @@ import styles from './css'; import axios from 'axios'; class MediaList extends Component { + state = {tvShowList: []}; + componentDidMount() { this.getMostWatched(); } getMostWatched = async params => { const res = await axios.get('/api/recommend/most-watched'); - console.log(res); - return res; + this.setState({tvShowList: res.data}); }; render() { - const {classes} = this.props; - return ( -
- Title
-
- First Line
- Second Line
-
+ {show.summary}
+
+ Views: {show.views}
+