mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
17 lines
242 B
JavaScript
17 lines
242 B
JavaScript
(function () {
|
|
const AppItem = () => {
|
|
return <div>child</div>;
|
|
};
|
|
|
|
class App extends React.Component {
|
|
render() {
|
|
return (
|
|
<div>
|
|
<p>Parent</p>
|
|
<AppItem />
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
});
|