Youtube Search dependencies & search components.

This commit is contained in:
Jenna Afarian 2018-06-20 00:17:07 +00:00
parent 8d4e8100be
commit 92ce27e1c2
3 changed files with 21 additions and 2 deletions

View File

@ -25,6 +25,7 @@
"react": "16.3.2",
"react-dom": "16.3.2",
"react-redux": "5.0.7",
"redux": "4.0.0"
"redux": "4.0.0",
"youtube-api-search": "0.0.5"
}
}

View File

@ -0,0 +1,10 @@
import React, { Component } from 'react';
class SearchBar extends Component {
render() {
return <input />;
}
}
// Export file (import in another file)
export default SearchBar;

View File

@ -1,10 +1,18 @@
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>Hi!</div>;
return (
<div>
<SearchBar />
</div>
);
}
// App = function() similar to App = () =>