Sha256: 95dac1856d8af130fd5e5ee2d0bfe080ea0045d717790b221c6c10dad5580991
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
// Simple example of a React "smart" component import { connect } from 'react-redux'; import HelloWorld2 from '../components/HelloWorld2'; import * as actions from '../actions/helloWorld2ActionCreators'; // Which part of the Redux global state does our component want to receive as props? const mapStateToProps = (state) => ({ name: state.name }); // Don't forget to actually use connect! // Note that we don't export HelloWorld2, but the redux "connected" version of it. // See https://github.com/reactjs/react-redux/blob/master/docs/api.md#examples export default connect(mapStateToProps, actions)(HelloWorld2);
Version data entries
3 entries across 3 versions & 1 rubygems