Reputation: 401
Facing this error on one screen. While same redux configuration is working on all other screens.
TypeError: (0 , _reactRedux.default) is not a function.(In'(0 , _reactRedux.default)(mapStateToProps,{})','(0 , _reactRedux.default)' is undefined)
Upvotes: 1
Views: 5367
Reputation: 401
Hope it helps someone.
Change
import connect from "react-redux";
to
import {connect} from "react-redux";
Upvotes: 12