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

pull request as personal info #271

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
9 changes: 0 additions & 9 deletions src/components/app.js

This file was deleted.

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

class SearchBar extends Component{
constructor(props){
super(props);

this.state = {term: ' '};
}
render(){
return <input onChange ={event => console.log(event.target.value)}/>;
}
}

export default SearchBar;
File renamed without changes.
Empty file added src/components/video_list.js
Empty file.
Empty file.
25 changes: 14 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
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';
const API_KEY = 'AIzaSyA2kDKEdWA-jIcAbxi9S8Ugt6-yryKWWy4';

import App from './components/app';
import reducers from './reducers';
// Create a new component. This component should produce
// some HTML
const App = () => {
return (
<div>
<SearchBar />
</div>
);
}

const createStoreWithMiddleware = applyMiddleware()(createStore);

ReactDOM.render(
<Provider store={createStoreWithMiddleware(reducers)}>
<App />
</Provider>
, document.querySelector('.container'));
// Take this component's generated HTML and
// put is on the page(in DOM)
ReactDOM.render(<App />, document.querySelector('.container'));
7 changes: 0 additions & 7 deletions src/reducers/index.js

This file was deleted.