Last active
September 13, 2017 14:13
-
-
Save kellyrmilligan/37b5f8cd3e1cc0eaaec7a80c3622081f to your computer and use it in GitHub Desktop.
Revisions
-
kellyrmilligan revised this gist
Sep 13, 2017 . 1 changed file with 3 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,9 @@ const List = ({ items, onClick }) => ( <ul> {items.map(item => ( <li> {item.text} </li> ))} </ul> ) -
kellyrmilligan created this gist
Sep 13, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ const List = ({ items, onClick }) => ( <ul> {items.map(item => ( <ClickHandler key={item.id} data={item} onClick={onClick}> {(handleClick) => ( <li onClick={handleClick}> {question.text} </li> )} </ClickHandler> ))} </ul> )