Code QuizIntermediate

Derived State from Props

Copying a prop into state that never updates.

Codejavascript
function PriceLabel({ price }) {
  const [displayPrice] = useState(`$${price}`);
  return <Text>{displayPrice}</Text>;
}

What is the bug in this code?