Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 20 days ago

BMI calculator using React and Tailwind CSS

react, vite, tailwind-css
P
Suraj Khatri•470
@SurajCasey
A solution to the Body Mass Index calculator challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I’m most proud of how I implemented the BMI calculation logic for both metric and imperial units accurately, including converting units like pounds to stones and pounds, and displaying the healthy weight ranges clearly.

What challenges did you encounter, and how did you overcome them?

One of the main challenges I faced was handling the unit conversions between metric and imperial systems accurately, especially converting height from feet and inches to inches only, and weight from pounds to stones and pounds for display. It took some careful calculation and testing to make sure the BMI results and healthy ranges were correct for both systems.

What specific areas of your project would you like help with?

I’d appreciate help improving accessibility, especially implementing ARIA live regions or other techniques to make dynamic BMI result updates more screen reader friendly. Additionally, guidance on adding smooth animations to enhance user feedback without compromising performance would be great.

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 Suraj Khatri'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