Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 4 years ago

ReactJS + Vite, and using CSS modules

SuzuMantan•370
@susumantan
A solution to the Stats preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Hello 👋,

I was watching React tutorials on Youtube and wanted to try it in a project, this was the result 😄. Overall I'm happy with the result. But i would like some advice on:

  • Since i use the image as a background-image i was declaring width and height. This was something that i find bothering, because i was thinking in responsive mode i need to re-declare width and height again. But i didn't find any other good solution 😐. Maybe someone can lend me some advice on how to approach this?.

As I'm new to React, any advice on that is really helpful as I want to develop bigger projects with React 💙. Keep on coding 🎉

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 SuzuMantan'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