Converting presentChallengeComplete into React