Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created February 22, 2021 15:29
Show Gist options
  • Save eamonnboyle/46000673adfc5053fed5650142354797 to your computer and use it in GitHub Desktop.
Save eamonnboyle/46000673adfc5053fed5650142354797 to your computer and use it in GitHub Desktop.
Weather App Tutorial - Add Bootstrap Formatting
function App() {
...
return (
<div className="container">
<h1>Weather App</h1>
<div>
<label>
Add Location
<input className="ml-1 mr-1" type="text" value={locationSearch}
onChange={e => setLocationSearch(e.target.value)}/>
</label>
<button className="btn btn-primary"
onClick={addLocation} disabled={disableSearch}>Search</button>
</div>
<div>
<h2>Locations</h2>
<table className="table table-hover">
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment