Closed raguct25 closed 2 years ago
You need to inject the styles into the iframe, if your using a <link>
tag then you can pass that to the head prop:
<Frame head={<link href="/path/to/styles.css" rel="stylesheet">}>
...
</Frame>
Other options are to copy the link tags from the parent document into the frame using contentDidMount
.
I have used scss styles in render component whenever i render directly the styles applied properly. but i render inside the react-frame the styles doesn't apply.
with Frame output:
without frame output:
what I do for apply scss style.