Skip to content

Instantly share code, notes, and snippets.

@dainelmawer
Created October 11, 2018 07:00
Show Gist options
  • Save dainelmawer/282b116ceb6f8dbf3a9e497665ea47c9 to your computer and use it in GitHub Desktop.
Save dainelmawer/282b116ceb6f8dbf3a9e497665ea47c9 to your computer and use it in GitHub Desktop.
import React, { Fragment } from 'react';
import ParentComponent from './ParentComponent';
import ChildComponent from './ChildComponent';
import SiblingComponent from './SiblingComponent';
const MyComponent = () => {
return(
<Fragment>
<ParentComponent>
<ChildComponent />
<ChildComponent />
<ChildComponent />
</ParentComponent>
<SiblingComponent />
</Fragment>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment