code_paster

Untitled

Jun 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. export class Input extends Component {
  2. render() {
  3. function buttonList() {
  4. const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('');
  5. return alphabet.map(letter => {
  6. return <button onClick={this.handleClick} key={letter}>{letter}</button>
  7. });
  8. }
  9. return (
  10. <div>{buttonList()}</div>
  11. );
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment