moeen-basra / laravel-react

Laravel 8 and React 17 boilerplate

Home Page:http://laravel-react.moeen.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loadable component

salmansamkhan opened this issue · comments

Hi Moeen,

I came across to your this project and it really a helpful project in learning react with laravel.

I was wondering that instead of lazy function to load components 'React documentation says' to use this 'https://github.com/gregberge/loadable-components' library to load it from server.

I want to know where I should change to achieve this. As I am really new to react so not able to understand how to do this.

Can you please help me out in this.

Thanks in advance brother.

commented

can you point me to the documentation ?

Moeen Farooq Basra,
I have cloned your project and followed all steps of first method. But when i serve the project, I could not get even view of login or register pages. Its just showing blank screen. Reply if you have any solution.

@Waqas-Sharif Is it possible that #60 is causing those blank screens? Can you check DevTools > Console, whether you get the same error as described in that ticket?

cc @moeen-basra

commented

@Waqas-Sharif I just tried cloning a fresh, there was some issue with the validator rest are fine. Let me know if you still face some problems.