Created
February 22, 2021 15:29
-
-
Save eamonnboyle/46000673adfc5053fed5650142354797 to your computer and use it in GitHub Desktop.
Weather App Tutorial - Add Bootstrap Formatting
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
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