[React] 새창 Pop up 데이터 넘겨주는 방법


[React] 새창 Pop up 데이터 넘겨주는 방법

const childPopup = useRef() const onPopup = () => { const url = `/preview` childPopup.current = window.open(url, "_blank"); // "noopener, noreferrer" childPopup.current.param = param } . . . 미리보기 param 을 넘겨주면 새창 컴포넌트에 props 에 param이 담겨있다. 신기방기 childPopup.current.param = param

[React] 새창 Pop up 데이터 넘겨주는 방법에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : [React] 새창 Pop up 데이터 넘겨주는 방법