How stratopedia/bmi-health-compass works
BMI Health Compass is a small React app for entering age, gender, height, and weight, validating those inputs, and calculating BMI and its category. The result includes a health score and a compass gauge. The calculation and result presentation live together in App.tsx; the gauge is a separate visualization component. Source excerpts show the React entry point rendering App and App passing BMI to the gauge. No storage or external services are shown.
Main entry points: App.tsx BMI Calculator · main.tsx React Entry · HealthCompassGauge.tsx Compass Gauge
Components 4
BMI App
- React Entry
src/main.tsx - BMI Calculator
src/App.tsx
BMI Visualization
- Compass Gauge
src/components/HealthCompassGauge.tsx
Other components
- User
Connections 3
- User → BMI Calculator: enters inputs
src/App.tsx - React Entry → BMI Calculator: renders
src/main.tsx - BMI Calculator → Compass Gauge: renders BMI
src/App.tsx