Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube #119

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Next Next commit
initial setup, create searchBar component
  • Loading branch information
christopher-lamkin committed May 20, 2017
commit 9e6c98e7bc84ea452b6bf042c7fb6f6ace6cca06
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"react-dom": "^0.14.3",
"react-redux": "4.3.0",
"react-router": "^2.0.1",
"redux": "^3.0.4"
"redux": "^3.0.4",
"youtube-api-search": "0.0.5"
}
}
9 changes: 0 additions & 9 deletions src/components/app.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/components/search_bar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';

const SearchBar = () => {
return <input/>;
};

export default SearchBar;
File renamed without changes.
Empty file added src/components/video_list.js
Empty file.
Empty file.
22 changes: 12 additions & 10 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import SearchBar from './components/search_bar';

import App from './components/app';
import reducers from './reducers';
const API_KEY = 'AIzaSyAGMgh7QKPSGbjOV-JEVug4TCtyET_Vfuo';

const createStoreWithMiddleware = applyMiddleware()(createStore);
const App = () => {
return (
<div>
<SearchBar />
</div>
);
};

ReactDOM.render(
<Provider store={createStoreWithMiddleware(reducers)}>
<App />
</Provider>
, document.querySelector('.container'));
// Attach this component's generated html and put it on the page (DOM)

ReactDOM.render(<App />, document.querySelector('.container'));
7 changes: 0 additions & 7 deletions src/reducers/index.js

This file was deleted.