The ToastContainer component throws this error whenever I try to use it:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
I am importing it like this import { ToastContainer, toast } from "mdbreact";, and using it in my app like this:
The ToastContainer component throws this error whenever I try to use it:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
I am importing it like this
import { ToastContainer, toast } from "mdbreact";
, and using it in my app like this:<ToastContainer hideProgressBar={true} newestOnTop={true} autoClose={5000} />