打字原稿和react + redux有问题
Could not find a declaration file for module 'react-redux'. '/home/andrew/miramir/src/js/node_modules/react-redux/lib/index.js' implicitly has an 'any' type.
试图从react-redux中获取Provider
import { Provider } from 'react-redux';
我怎么解决它?谢谢
您应该只需将所需类型添加到项目中,如下所示:
npm install --save-dev @types/react-redux