-
Notifications
You must be signed in to change notification settings - Fork 52
Mini challenge 2 #33
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
base: master
Are you sure you want to change the base?
Mini challenge 2 #33
Conversation
- Button - emoji :D - add GlobalStyle to change from a button action - add mock data
- delete missing css file - fix index exporting name
This reverts commit 443412c.
- add placeholder to search button - delete console.table - add key for card list
|
|
||
| const intervalId = setInterval(rotateBackground, 3000); | ||
| body.addEventListener('click', rotateBackground); | ||
| const GlobalStyles = createGlobalStyle`body{ |
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 use of the APIs!
|
|
||
| function Card({ title, description, image, width, height }) { | ||
| return ( | ||
| <div> |
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.
This div is unnecessary. It'd be good to take it out to reduce items in the tree.
| return ( | ||
| <div> | ||
| <Container> | ||
| <center> |
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.
This is deprecated: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center
I'd recommend to just style the container to have centered text instead of this approach.
guillermo-rebolledo
left a comment
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.

Changes performed:
Questions on challenge 2:
using
create-react-appincludesjestto testingthe components that programmer create that includes business logic
it is better to using TDD at the beginning of development or along with it, at the end could be applied but maybe you will find corner cases and you will need spend extra time covering