react-toastify-redux icon indicating copy to clipboard operation
react-toastify-redux copied to clipboard

Element type is invalid

Open nagarjuna993 opened this issue 7 years ago • 1 comments
trafficstars

I am unable to use the component. When i am importing ToastController and using it, i am getting the below error

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.

nagarjuna993 avatar Jul 09 '18 16:07 nagarjuna993

Instead of <ToastController /> use <ToastContainer />. Also at that same file add import 'react-toastify/dist/ReactToastify.css'; Wasted a few hours trying to figure it out. Thank you README.md -.-

gerysk avatar Jul 12 '18 11:07 gerysk