Added missing Flow header
Brian Vaughn committed
Jul 28, 2019 at 17:21 UTC
9a36e56d342256f335ce6308fe3908ebab43dccf
1 file changed
+7
-5
shells/dev/app/Iframe/index.js
+7
-5
@@ -1,16 +1,18 @@
1
-import React from 'react';
1
+/** @flow */
2
+
3
+import React, { Fragment } from 'react';
4
import ReactDOM from 'react-dom';
5
6
export default function Iframe() {
7
return (
6
- <>
8
+ <Fragment>
9
<h2>Iframe</h2>
10
<div>
11
<Frame>
12
<Greeting />
13
</Frame>
14
</div>
13
- </>
15
+ </Fragment>
16
);
17
}
18
@@ -45,7 +47,7 @@ function Frame(props) {
47
}, []);
48
49
return (
48
- <>
50
+ <Fragment>
51
<iframe title="Test Iframe" ref={ref} style={iframeStyle} />
52
<iframe
53
title="Secured Iframe"
@@ -54,7 +56,7 @@ function Frame(props) {
56
/>
57
58
{element ? ReactDOM.createPortal(props.children, element) : null}
57
- </>
59
+ </Fragment>
60
);
61
}
62