Skip to content

[NEW] - PokeCard component#1

Open
fernandaMadin wants to merge 1 commit into
mainfrom
csb-dyr8l
Open

[NEW] - PokeCard component#1
fernandaMadin wants to merge 1 commit into
mainfrom
csb-dyr8l

Conversation

@fernandaMadin

Copy link
Copy Markdown
Owner

No description provided.

@wdonet wdonet left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good job! 🆗

Comment thread src/App.js
return (
<div className="App">
<h1>Welcome to your second mini challenge!</h1>
<PokeCard />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It would be better to inject mock data here instead of inside the component.
Advantages:

  • Improve your Unit testing
  • Avoid DRY when using the component in different parts of your app


function PokeCard() {
return (
<div class="container">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

good! you're using class names for styling

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