I have a react component and I want its innerHTML to pass as prop to an iframe.
render() { const page = const iframeConte
Maybe a bit late for a reply, but you may try reaching the react children elements through ref:
const r = React.useRef(null); console.log(r.current.children)