Answer the question
In order to leave comments, you need to log in
What's wrong with React?
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.
7 | let state = store.getState()
8 |
> 9 | ReactDOM.render(
10 | <React.StrictMode>
11 | <React.Provider state={state}>
12 | <App />
Answer the question
In order to leave comments, you need to log in
The React.Provider component doesn't exist, where did you get it from? This is the exported type.
If this is translated literally:
Error: Element type is invalid: Expected string (for built-in components) or class/function (for composite components), but received: undefined. Most likely, you forgot to export your component from the file it is defined in, or you may have confused the default import with the named import.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question