BMI calculator using React and Tailwind CSS

Solution retrospective
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.
Please log in to post a comment
Log in with GitHubCommunity 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