-
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
Edem's react-cinema #1
base: master
Are you sure you want to change the base?
Conversation
|
||
fetchingMovies(movie) { | ||
//search for movie | ||
console.log("Fetching Movies " + movie); |
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's good practive to omit console.logs in committed files
import React from "react"; | ||
import MovieInfo from "./MovieInfo"; | ||
|
||
function Movie(props) { |
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.
Minor point: destructuring here will save you having to type props
in JSX
@@ -0,0 +1,13 @@ | |||
|
|||
.App-header { |
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 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)}> |
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
No description provided.