Created
March 14, 2021 07:07
-
-
Save arihantverma/22f1095c563eb27eab033af612703e41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 🦢🦢🦢 | |
* 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