-
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
HL React Cinema #4
base: master
Are you sure you want to change the base?
Conversation
super(); | ||
this.state = { movie: [], query: "", page: 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.
avoid using using singular for array names unless it's something like list
or basket
. it will make it easier to figure out later what you are referring to
render(){ | ||
search() { | ||
const inputString = this.state.query; | ||
console.log(inputString); |
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.
avoid committing console.logs
nextPage() { | ||
this.setState({ | ||
page: this.state.page + 1 | ||
}, ()=>this.search()); |
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.
nice
@@ -0,0 +1,21 @@ | |||
import React from "react"; | |||
|
|||
function Movies({ movie, receiveMovieDetails }) { |
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.
nice
functionality good - search, more info and pagination working, css a work in progress.