Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created July 28, 2018 15:42
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