mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
11 lines
196 B
JavaScript
11 lines
196 B
JavaScript
import Parent from './Parent';
|
|
import Child from './Child';
|
|
|
|
function MyComponent({closeFn}) {
|
|
return (
|
|
<Parent render={() => <Child closeFn={closeFn} /> } />
|
|
);
|
|
}
|
|
|
|
export default Parent;
|