I need a Welcome.jsx page with Login, Register, and Dasboard. Breeze does it. But I want to load components to Welcome.jsx {children} with the Navlinks (the Myfirst.jsx and Mysecond.jsx components). The loading is working when the #authentication div is commented out. But when it is not commented I have errors like this:
Uncaught TypeError: Cannot read properties of undefined (reading 'user') at Welcome (Welcome.jsx:9:27) at renderWithHooks (react-dom.development.js:16305:18) at mountIndeterminateComponent (react-dom.development.js:20074:13) at beginWork (react-dom.development.js:21587:16) at HTMLUnknownElement.callCallback2 (react-dom.development.js:4164:14) at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:16) at invokeGuardedCallback (react-dom.development.js:4277:31) at beginWork$1 (react-dom.development.js:27451:7) at performUnitOfWork (react-dom.development.js:26557:12) at workLoopSync (react-dom.development.js:26466:5)
Here is the GitHub repository(You need the Cannot_Read_User branch):
https://github.com/folza1/chirper-react/tree/Cannot_Read_User
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community