Support the ongoing development of Laravel.io →
Breeze React Laravel

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Fodor Zoltán folza1 Joined 21 Jun 2023

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.