我正在使用 react-toastify 弹出错误消息。为什么我会收到此错误?
TypeError: Object(...) is not a function useToastContainer E:/Courses/programing/Code with Mosh/Front End/Mastering React/08 - Calling Backend Services (01h42m)/Section 8- Calling Backend Services/start/http-应用程序/node_modules/react-toastify/dist/react-toastify.esm.js:866
删除ToastContainer
组件后,一切正常。我应该怎么做才能摆脱这个错误,为什么我会得到它?