Debian Codegraph @

packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/dont-hoist-before-hoc/input.mjs

raw
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);