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

Interactive Rating built with NextJs and TailwindCSS

react, tailwind-css, next
Brian Nelson•150
@briannelson95
A solution to the Interactive rating component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


Interactive Rating Component

What did you find difficult while building the project?

This challenge was pretty easy. I was actually working on something similar in my freelance work so I had a good idea of how I was going to save state and make this interactive.

Which areas of your code are you unsure of?

One problem I ran into was using Tailwind to create the custom look of the radio buttons by using their peer function. I needed to separate all the the radio buttons into their own <div> because without, when 1 was selected all of the peers were visually changing.

Do you have any questions about best practices?

No major questions about best practices. If anythings it would be around the correct way to use all of the different form tags.

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 Brian Nelson'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

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