Hello guys!
I’m trying to create a custom ref for my plasmic component, but it seems doesn’t work, the ref always keeps null.
I tried to ways (code for explanatory purposes only)
import React from 'react'
function Header() {
const ref = React.useRef(null)
return (
<PlasmicHeader
root={{
ref,
}}
/>
)
}
export default Header
and
import React from 'react'
function Header() {
const ref = React.useRef(null)
return (
<PlasmicHeader
ref={ref}
/>
)
}
export default Header