Teeny tiny refactor.
This commit is contained in:
3
react-slideshow/src/App.js
vendored
3
react-slideshow/src/App.js
vendored
@@ -57,6 +57,9 @@ class Album extends React.Component {
|
||||
};
|
||||
}
|
||||
componentDidMount() {
|
||||
this.loadAlbum()
|
||||
}
|
||||
loadAlbum() {
|
||||
let {album} = this.props;
|
||||
fetch(process.env.PUBLIC_URL + `/api/album/${album}`)
|
||||
.then(res => res.json())
|
||||
|
||||
Reference in New Issue
Block a user