23 lines
540 B
JavaScript
23 lines
540 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import SearchBar from './components/search_bar';
|
|
|
|
// Variable to hold the API key
|
|
const API_KEY = 'AIzaSyCV3vu9eXY75w23VFYZOAp1V5Rqk4gTD5E';
|
|
|
|
// Create a new component. This component should produce
|
|
// some HTML
|
|
const App = () => {
|
|
return (
|
|
<div>
|
|
<SearchBar />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
// App = function() similar to App = () =>
|
|
|
|
// Take this component's generated HTML and
|
|
// put it on the page (in the DOM)
|
|
ReactDOM.render(<App />, document.querySelector('.container'));
|