How Prevent Multiple Copies Of React from Loading?

前端 未结 4 419
温柔的废话
温柔的废话 2020-12-16 13:26

In my previous Meteor app, using browserify, and React, all was working until I switched to meteor webpack.

I use react-select in my Meteor apps and it worked great

4条回答
  •  粉色の甜心
    2020-12-16 13:50

    If You use web pack then you can fix it by adding the following to Webpack config for Don't bundle react or react-dom

    externals: { 'react': 'React', 'react-dom': 'ReactDOM' }

提交回复
热议问题