Skip to content

Instantly share code, notes, and snippets.

@dance2die dance2die/Child.js
Created Jul 28, 2018

Embed
What would you like to do?
const Child = ({ id, isClicked }) => (
<div
className={isClicked ? `highlight` : ``}
>{`ID ${id} --- I am a child element`}</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.