☰
Debian Codegraph
@
8.0.6+ds1+~cs177.303.116-1
8.0.4+ds1+~cs177.303.116-3
7.20.15+ds1+~cs214.269.168-17
/
/
packages
/
babel-plugin-transform-react-constant-elements
/
test
/
fixtures
/
constant-elements
/
dont-hoist-before-hoc
/
input.mjs
☽
☼
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/dont-hoist-before-hoc/input.mjs
code
plain
raw
Expat
2014-present, Sebastian McKenzie <
[email protected]
>
debian/copyright
1
import React from "react";
2
3
const HOC = component => component;
4
5
const Parent = ({}) => (
6
<div className="parent">
7
<Child/>
8
</div>
9
);
10
11
export default Parent;
12
13
let Child = () => (
14
<div className="child">
15
ChildTextContent
16
</div>
17
);
18
Child = HOC(Child);