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

Responsive Newsletter Sign Up using ReactJS and tested MediaQuery Hook

react, vite
FocusSTmatt•170
@FocusSTmatt
A solution to the Newsletter sign-up form with success message challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


  1. Is it best practice to separate Component styles in their own CSS file? if not, what is the proper way of going about this?

  2. I'm not sure if my code is structured properly here. I was practicing passing props and state to components and I think I may have added unnecessary layers of complexity by adding components when it may not have been needed. I'm curious what the textbook code structure would have been for this little app?

Any comments or suggestions are welcome. Thanks!

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