react reset component state from parent