Skip to content

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.

2 participants