Created
February 22, 2021 15:44
-
-
Save eamonnboyle/1cc5985ba72619d7da0bdefaa79a1a6c to your computer and use it in GitHub Desktop.
Weather App Tutorial - Using Table Component in App
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
... | |
import {LocationSearch} from "./LocationSearch"; | |
import {LocationTable} from "./LocationTable"; | |
function App() { | |
... | |
return ( | |
<div className="container"> | |
<h1>Weather App</h1> | |
<LocationSearch onSearch={addLocation}/> | |
<LocationTable locations={locations}/> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment