You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.Īt createFiberFromTypeAndProps ( at createFiberFromElement ( at createChild ( at reconcileChildrenArray ( at reconcileChildFibers ( at reconcileChildren ( at updateContextProvider ( at beginWork ( at HTMLUnknownElement.callCallback ( at HTMLUnknownElement.e._wrapped ()Īt Object.invokeGuardedCallbackDev ( at invokeGuardedCallback ( at beginWork$1 ( at performUnitOfWork ( at workLoopSync ( at performSyncWorkOnRoot ( at at unstable_runWithPriority ( at runWithPriority$1 ( at flushSyncCallbackQueueImpl ( at workLoop ( at flushWork ( at MessagePort. It works without the Switch tags but with them I get 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. My approach is to use react-router-dom’s MemoryRouter, NavLink and Switch. Project Structure: The project structure after deleting some unrequired files is shown in the picture mentioned below. I’m trying to create a Single Page App in Airtable because I want to be able to change which components are displayed to the user dynamically. Step 3: After creating the React application, Install the React Router as a dependency using the following command.
0 Comments
Leave a Reply. |