Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import TeslaStats from '../components/TeslaStats/TeslaStats';
import { connect } from 'react-redux';
const mapStateToProps = (state) => {
return {
carstats: state.carstats
const TeslaStatsContainer = connect(mapStateToProps, null)(TeslaStats)
export default TeslaStatsContainer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment