結果 : set props to state react functional component