Skip to content

Instantly share code, notes, and snippets.

@jslnriot
Created March 19, 2017 23:34
Show Gist options
  • Save jslnriot/f6df45e272002b365789b953528b88b0 to your computer and use it in GitHub Desktop.
Save jslnriot/f6df45e272002b365789b953528b88b0 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchStuff } from '../actions/index';
class WelcomeContainer extends Component {
render() {
return (
<div className="welcome-container">
Welcome Container
</div>
);
}
}
function mapStateToProps(state) {
return { someStuff: state.entries.all }
}
export default connect(mapStateToProps, { fetchStuff })(WelcomeContainer);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment