Skip to content

Instantly share code, notes, and snippets.

@gyver98
Last active March 16, 2017 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gyver98/46b3929798503d057bf23e64a72c2011 to your computer and use it in GitHub Desktop.
Save gyver98/46b3929798503d057bf23e64a72c2011 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import TeslaCarContainer from './containers/TeslaCarContainer';
import TeslaStatsContainer from './containers/TeslaStatsContainer';
import TeslaSpeedCounterContainer from './containers/TeslaSpeedCounterContainer';
import TeslaTempCounterContainer from './containers/TeslaTempCounterContainer';
import TeslaClimateContainer from './containers/TeslaClimateContainer';
import TeslaWheelsContainer from './containers/TeslaWheelsContainer';
import TeslaNotice from './components/TeslaNotice/TeslaNotice';
import Header from './components/Header/Header';
import './App.css';
import appReducer from './reducers/teslaRangeApp';
const store = createStore(appReducer);
class App extends Component {
render() {
return (
<Provider store={store}>
<div>
<Header />
<div className="wrapper">
<form className="tesla-battery">
<h1>Range Per Charge</h1>
<TeslaCarContainer />
<TeslaStatsContainer />
<div className="tesla-controls cf">
<TeslaSpeedCounterContainer />
<div className="tesla-climate-container cf">
<TeslaTempCounterContainer />
<TeslaClimateContainer />
</div>
<TeslaWheelsContainer />
</div>
<TeslaNotice />
</form>
</div>
</div>
</Provider>
);
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment