Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Li(props){
- const names=props.name;
- const list=names.map((number)=><li key={number.id} value={number.id} onClick={props.onClick}>{number.name}</li>);
- return (
- <ul>
- {list}
- </ul>
- )
- }
Add Comment
Please, Sign In to add comment