1
connect
をreact-redux
からデコレータに組み合わせる方法はありますか?redux-saga
?@connect decoratorをredux-sagaで使うには?
import React from 'react';
import { connect } from 'react-redux'
@connect(({ data }) => ({ data }), require('../models/effects').default)
export default class User extends React.Component {
onClick() {
console.log('on click.');
// how to make redux-saga work here?
this.props.action1();
}
}