All interview questionsIn React, when is functional state update useful?IntermediateAnswerUse it when an update depends on the previous value.