mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
591 B
TypeScript
23 lines
591 B
TypeScript
import * as React from 'react';
|
|
import Frame, { FrameContextConsumer } from 'react-frame-component';
|
|
|
|
<div>
|
|
<Frame>
|
|
<span>content</span>
|
|
</Frame>
|
|
<Frame
|
|
head={<span>head</span>}
|
|
mountTarget='#mountHere'
|
|
contentDidMount={() => {}}
|
|
contentDidUpdate={() => {}}
|
|
initialContent='<!DOCTYPE html><html><head></head><body><h1>i wont be changed</h1><div id="mountHere"></div></body></html>'
|
|
>
|
|
<span>content</span>
|
|
</Frame>
|
|
<Frame>
|
|
<FrameContextConsumer>
|
|
{({ document, window }) => <span>content</span>}
|
|
</FrameContextConsumer>
|
|
</Frame>
|
|
</div>;
|