Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- import { connect } from 'react-redux';
- export default function(ComposedComponent) {
- class DecoreWithStore extends Component {
- componentDidMount() {}
- render() {
- return <ComposedComponent {...this.props} />;
- }
- }
- const mapStateToProps = state => ({});
- const mapDispatchToProps = {};
- return connect(mapStateToProps, mapDispatchToProps)(DecoreWithStore);
- }
Add Comment
Please, Sign In to add comment