Last active
July 24, 2016 23:22
-
-
Save smykes/8df32256ce7db95188c65f524f177cfe to your computer and use it in GitHub Desktop.
This file contains 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 characters
class AutoComplete extends React.Component { | |
_getChoices() { | |
let ret = []; | |
for (var i = 0; i < this.props.suggestions.length; i++) { | |
ret.push(<AutoCompleteChoice onClick={this.pick}>) | |
} | |
return ret; | |
} | |
render() { | |
let listItem = this._getChoices(); | |
return ( | |
<section> | |
<ul> | |
{listItem} | |
</ul> | |
</section> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment