learning-react icon indicating copy to clipboard operation
learning-react copied to clipboard

Chapter 8 Fetch Component

Open jjmountain opened this issue 3 years ago • 1 comments

Running the codesandbox gives the following error: 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. Check the render method of "UserRepositories".

jjmountain avatar Feb 04 '22 02:02 jjmountain

Go to UserRepositories.js and change the Fetch import from { Fetch } to Fetch (without the curly braces).

gachokaerick avatar Feb 15 '22 02:02 gachokaerick