Skip to content

Instantly share code, notes, and snippets.

@arihantverma
Created March 14, 2021 07:07
Show Gist options
  • Save arihantverma/22f1095c563eb27eab033af612703e41 to your computer and use it in GitHub Desktop.
Save arihantverma/22f1095c563eb27eab033af612703e41 to your computer and use it in GitHub Desktop.
/**
* 🦢🦢🦢
* 1. Read the comments and render the required component
* 2. You are allowed to browse react docs if you need be
*/
const Parent = () => {
// 🦢 write code here
return null;
};
const Child = () => {
// write code here
return null;
};
/**
* 🦢 Can't change anything inside `OurApp` component
*/
function OurApp() {
return (
<Parent>
<div>
<Child />
</div>
<Child />
<Child />
<div>
<div>
<Child />
</div>
</div>
<Child />
<div>
<Child />
</div>
</Parent>
);
}
/**
* 🦢
* should render an unordered list with the following list items
*
* first child
* some child between
* some child between
* some child between
* some child between
* last child
*/
export default function App() {
return <OurApp />;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment