ATQSHL
ATQSHL

Reputation: 401

TypeError: (0 , _reactRedux.default) is not a function(…)

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

Answers (1)

ATQSHL
ATQSHL

Reputation: 401

Hope it helps someone.

Change

import connect from "react-redux";

to

import {connect} from "react-redux";

Upvotes: 12

Related Questions