Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yukulelix's avatar

Laravel and React Router : prerender pages for SEO and performance

Hi there, I'm starting to play with React with my new Apps but I want to stick to Laravel for my backend. Does someone have any experience at prerendering pages from a React Router ? Let's say my router looks like this :

<Router history={browserHistory}>
    <Route path="/" component={App}>
        <Route path="welcome" component={WelcomeMsg}/>
    </Route>
</Router>

How could I render it in my blade (depending on the current url) ?

Cheers !

0 likes
0 replies

Please or to participate in this conversation.