-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CP React Cinema Project #10
base: master
Are you sure you want to change the base?
Conversation
Incomplete - readme missing, not tidied up, functions unimplemented, unfinished styling. |
super(); | ||
|
||
this.state = { films: [], pageNum: 1, currentSearchFlim: "love", unFound: {gif: '', h6: ''}, hideButtons: true}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to break out each property definition onto own line to make code easier to read
render(){ | ||
handleNext() { | ||
|
||
// this.setState(prevState =>Object.assign({}, prevState, { pageNum: prevState.pageNum + 1 })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commented out code should be removed to avoid clutter
<div></div> | ||
<div className="lower__buttons__wrapper"> | ||
<button className="lower__button__2" onClick={this.handlePrevious} href="#top">Back</button> | ||
<button className="lower__button__1" onClick={this.handleNext} href="#top" >Next</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
button should not have an href
Very nice work, but a lot of commented out code that should be deleted. It adds quite a lot of clutter and makes code more difficult to read |
No description provided.