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

Edem's react-cinema #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Etubom
Copy link

@Etubom Etubom commented Jun 25, 2018

No description provided.


fetchingMovies(movie) {
//search for movie
console.log("Fetching Movies " + movie);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's good practive to omit console.logs in committed files

import React from "react";
import MovieInfo from "./MovieInfo";

function Movie(props) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor point: destructuring here will save you having to type props in JSX

@@ -0,0 +1,13 @@

.App-header {
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 capitals for anything other than js classes or components. use lower case with dashes for CSS classes

function Search(props) {
return (
<div className='App-header'>
<form onSubmit={event => props.handleSubmit(event)}>
Copy link
Contributor

@dmitrigrabov dmitrigrabov Jul 1, 2018

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

2 participants