Created
June 14, 2016 19:10
-
-
Save ajosanchez/f13752b6c16b0aff004e4e01e4521344 to your computer and use it in GitHub Desktop.
dynamic html with react
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 characters
<div> | |
<form className="ui-filterable" id="searchbar"> | |
<input id="inset-autocomplete-input" data-type="search" placeholder="Search foods..."></input> | |
</form> | |
<ul data-role="listview" data-inset="true" data-filter="true" data-filter-reveal="true" data-input="#inset-autocomplete-input"> | |
{Object.keys(this.state.foods).forEach((food) => { | |
return ( | |
<li><a href="#">food</a></li> | |
); | |
})} | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment