Skip to content

React components task#1

Open
prokhorovd wants to merge 3 commits into
masterfrom
react-components
Open

React components task#1
prokhorovd wants to merge 3 commits into
masterfrom
react-components

Conversation

@prokhorovd
Copy link
Copy Markdown
Owner

No description provided.

@awpogodin awpogodin self-requested a review September 23, 2021 10:54
}
};

export default MovieCard;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

consider using propTypes or typescript to check props types in the future)

Comment thread src/App.js
<div className="App">
<Search />
<div className="movie-cards">
{moviesList}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you can map array in jsx:

<div className="movie-cards">
  {movies.map(item => (
    <MovieCard key={item.id} item={item} />
  ))}
</div>

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