結果 : react update component on state change