// 부모 컴포넌트 <Component setState={setState}/> // 자식 컴포넌트 interface propType { setWidgets: Function; } const Child = ({setState}) => { return ( <div>hallo</div> ) }