I would like to use Geocomplete (Github example), a JQuery plugin, with my Node JS app. I am fairly new to web apps and am having trouble figuring out how to integrate JQuery stuff.
I am rendering my page like so:
render() {
let { input } = this.state;
return (
<div className="row">
<div className="col s12">
<h4>Welcome!</h4>
<input
id="geocomplete"
placeholder="Enter a search location”
type="text"
onChange={this.onInputChange.bind(this)}
value={input} />
<a
onClick={this.onSearchClick.bind(this)}
className='waves-effect waves-light btn'>Search!</a>
</div>
</div>
)
}
The example shows to do something like:
$("#geocomplete").geocomplete()
but I can't seem to do that in render(), so I'm not sure how. Any ideas?
Thanks!