Added missing Flow header

This commit is contained in:
Brian Vaughn 2019-07-28 17:21:00 -07:00
parent 8e2134beee
commit 9a36e56d34
1 changed files with 7 additions and 5 deletions

View File

@ -1,16 +1,18 @@
import React from 'react';
/** @flow */
import React, { Fragment } from 'react';
import ReactDOM from 'react-dom';
export default function Iframe() {
return (
<>
<Fragment>
<h2>Iframe</h2>
<div>
<Frame>
<Greeting />
</Frame>
</div>
</>
</Fragment>
);
}
@ -45,7 +47,7 @@ function Frame(props) {
}, []);
return (
<>
<Fragment>
<iframe title="Test Iframe" ref={ref} style={iframeStyle} />
<iframe
title="Secured Iframe"
@ -54,7 +56,7 @@ function Frame(props) {
/>
{element ? ReactDOM.createPortal(props.children, element) : null}
</>
</Fragment>
);
}