Teeny tiny refactor.
This commit is contained in:
parent
407358bc43
commit
ea8f15ab23
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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user