Design comparison
Solution retrospective
I created this project with Next.js and used the .map to go trough all Card data to get header, content and pictures for each card.
What challenges did you encounter, and how did you overcome them?Next.js have some different rules than older React had. For example props seems not to be a thing in Next and it made my work with original plan more difficult. I did in the end not do it with props but add the Card.map directly to the card component.
Community feedback
- @AtatraPosted 3 months ago
I think it was a clever idea to create a component for the Card and map through each CardInfo like you did. You still managed to replicate the desired layout so good job! (I would have struggled a lot I think haha)
Overall, nice solution, your codebase is well organized and easy to read too. :)
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord