Quantcast
Channel: React-redux @connect does not work, but connect() does - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Ramast for React-redux @connect does not work, but connect() does

For babel-6, follow @megaboy101's answerFor babel-7 use this{"plugins": [ ["@babel/plugin-proposal-decorators", { "legacy": true }], ]}

View Article



Answer by megaboy101 for React-redux @connect does not work, but connect() does

The @connect decorator, or decorators in general, are not native to JavaScript. However, you can add them in via Babel.You can read more on it herenpm install --save-dev...

View Article

React-redux @connect does not work, but connect() does

I am unable to use the @connect() syntax in place of export default connect()I've noticed that when I use the usual syntaxclass PhonePage extends Component { ... }export default connect(state => ({...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>