All interview questionsIn React, give an example of derived state.IntermediateAnswerconst total = price * quantity.