Guest User

Untitled

a guest
May 26th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. function Li(props){
  2.  
  3. const names=props.name;
  4. const list=names.map((number)=><li key={number.id} value={number.id} onClick={props.onClick}>{number.name}</li>);
  5.  
  6. return (
  7. <ul>
  8. {list}
  9. </ul>
  10. )
  11. }
Add Comment
Please, Sign In to add comment