Skip to content

Instantly share code, notes, and snippets.

@ajosanchez
Created June 14, 2016 19:07
Show Gist options
  • Save ajosanchez/5841138de4cc939727d263a8668a859f to your computer and use it in GitHub Desktop.
Save ajosanchez/5841138de4cc939727d263a8668a859f to your computer and use it in GitHub Desktop.
dynamic html in react
<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