Apr 6, 2016
0
Level 1
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 !
Please or to participate in this conversation.