I have a function component that want to import in my app, but I'm getting:
Invariant Violation 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.
Check the render method of ProjectDropContainer.
Here is a sandbox:
https://codesandbox.io/s/brave-voice-bdrx0
I tried importing the ProjectDropContainer like this:
import ProjectDropContainer from "./ProjectDropContainer";
or like this:
import {ProjectDropContainer} from "./ProjectDropContainer";
But still the same!
The example that I tried to do according to (and it's working) is: