Sha256: f220a685aa79f65c1c830a5a1ca65292808114bfb17f073224ff180b9056579d
Contents?: true
Size: 679 Bytes
Versions: 7
Compression:
Stored size: 679 Bytes
Contents
// Simple example of a React "smart" component import { connect } from 'react-redux'; import <%= module_name.capitalize %> from '../components/<%= module_name.capitalize %>'; import * as actions from '../actions/<%= module_name %>ActionCreators'; // Which part of the Redux global state does our component want to receive as props? const mapStateToProps = (state) => ({ }); // Don't forget to actually use connect! // Note that we don't export <%= module_name.capitalize %>, 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)(<%= module_name.capitalize %>);
Version data entries
7 entries across 7 versions & 1 rubygems