Skip to content

Instantly share code, notes, and snippets.

@eamonnboyle
Created February 22, 2021 15:44
Show Gist options
  • Save eamonnboyle/1cc5985ba72619d7da0bdefaa79a1a6c to your computer and use it in GitHub Desktop.
Save eamonnboyle/1cc5985ba72619d7da0bdefaa79a1a6c to your computer and use it in GitHub Desktop.
Weather App Tutorial - Using Table Component in App
...
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