Exercise

Add another reactive expression

A reactive expression can call other reactive expressions. This allows you to modularize computations and ensure that they are NOT executed repeatedly. Mastering the use of reactive expressions is key to building performant Shiny applications.

In this exercise, you will use a reactive expression to calculate the health status based on the BMI.

Instructions

100 XP
  • Add a reactive expression rval_bmi_status to calculate BMI status.
  • Use this reactive expression to replace BMI status calculations in the output.