Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted almost 2 years ago

Responsive three column preview card using React and SCSS

react, react-testing-library, sass/scss
Rupali•910
@rupali317
A solution to the 3-column preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


I wrapped up my 2nd challenge and I have the following queries:

  • I have used semantic HTML as much as possible. In src/components/Card /Card.jsx instead of <div>, I used <article> and <section>. My reasoning is that <section> is handy for grouping similar content and <article> is for grouping text like blog. So, is the usage of these two tags correct in my code? Or do you have other recommendations?

  • What do you think of the test cases that I created (please refer to /src/components/Card/Card.test.jsx, src/components/Footer/Footer.test.jsx, src/components/GroupCard/GroupCard.test.jsx)? Am I following good practices? Should I have considered something differently?

Looking forward to your responses

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Rupali's solution.

Join 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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License