ReactJS + Vite, and using CSS modules

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 declaringwidth
andheight
. This was something that i find bothering, because i was thinking in responsive mode i need to re-declarewidth
andheight
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 🎉
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@palgramming
Well React is going to shine when you get into the bigger challenges here with multiple pages and things that can be made into reusable components. The new Premium "Planets fact site" challenge launched today looks like one that would be great to use React or Vue with
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