Skip to content

Instantly share code, notes, and snippets.

Last active Mar 16, 2017
What would you like to do?
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}>
<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 />
<TeslaWheelsContainer />
<TeslaNotice />
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment