In this challenge, you are given the Status
component, which receives the isOnline
prop. Your task is to modify the component to display "Online" if the isOnline
prop is true
, and "Offline" otherwise. To achieve this, utilize the ternary operator to efficiently express the condition. Update the Status
component to obtain the desired outcome.