結果 : react update state when props change functional component