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

devcarlos's avatar

best way to add React to a fully built application running on laravel/blade?

Hey everyone, im a newbie programmer and recently my company tasked me with adding React to a previously built app that was running Vue.js, but now want to make it run on React.Its larevel backened and Blade php. I feel like im running in circles trying to figure out whats the best way to implements this or if its even possible? Everything was already built so i figured i should only be adding some routes or React scripts? If anyone has an idea or advice on how best to go about this if it makes sense ill be very appreciative. Thanks all!

0 likes
10 replies
Sinnbeck's avatar

Uhh that sounds like a really weird request. So you are meant to run both vue and react simultaneously? And how is vue used currently?

Sinnbeck's avatar

I am a react developer btw so hopefully I can answer any questions you have in regards to that

devcarlos's avatar

@Sinnbeck no were getting rid of Vue and replacing it all with React. So far i see they used Vue for the components, like header and navbars

Sinnbeck's avatar

@metacarlos ok so they are targeting specific ids of divs and making them interactive I assume. So you are meant to do the same with react i assume?

Sinnbeck's avatar

Are you btw proficient in react? Or vue?

devcarlos's avatar

@Sinnbeck yes exactly, i believe i will build new ones from scratch. would i just need to add react script tag for the blade.php templates?

devcarlos's avatar

@Sinnbeck im being trained on react currently, before my knowledge was more just javascript general

Sinnbeck's avatar

@metacarlos sounds like it yes. Sounds like you will find an ID and hook react into it. Vue and react work quite the same way in this regard.

While learning react you will notice that you give it and id like #app. This can be any id on the page. And you can have multiple if these initialization scripts to hit multiple ids

1 like

Please or to participate in this conversation.