Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

HL React Cinema #4

wants to merge 1 commit into from

Conversation

HTLuff
Copy link

@HTLuff HTLuff commented Jun 27, 2018

functionality good - search, more info and pagination working, css a work in progress.

super();
this.state = { movie: [], query: "", page: 1 };
Copy link
Contributor

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);
Copy link
Contributor

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());
Copy link
Contributor

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 }) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants