Guest User

Untitled

a guest
Dec 12th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import { connect } from 'react-redux';
  3.  
  4. export default function(ComposedComponent) {
  5. class DecoreWithStore extends Component {
  6. componentDidMount() {}
  7.  
  8. render() {
  9. return <ComposedComponent {...this.props} />;
  10. }
  11. }
  12.  
  13. const mapStateToProps = state => ({});
  14.  
  15. const mapDispatchToProps = {};
  16.  
  17. return connect(mapStateToProps, mapDispatchToProps)(DecoreWithStore);
  18. }
Add Comment
Please, Sign In to add comment