ensi
Hydration mismatch when trying to reference slot element outside of JSX
My component has two optional props
leadingElement
and trailingElement
that expect a JSX element or fragment. I insert them like this:
When I try to reference these props outside of the JSX return, it results in a hydration mismatch:
Component works fine without this line. Code: https://pastebin.com/AjVSuhQM25 replies