Last active
March 16, 2017 23:48
-
-
Save gyver98/46b3929798503d057bf23e64a72c2011 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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