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

Cushty's avatar
Level 4

Can you use react compnents in a blade view?

Question says it all, can I use react compnents in inertia in a blade view? thanks

0 likes
6 replies
Snapey's avatar

have a look at mingle.js, however this is for Livewire

Cushty's avatar
Level 4

@Snapey thanks for the reply, so it seems react components cant be pulled into blade views?

coni's avatar

You can use React or Vue components as a "web component" in standard blade files without Inertia. With Inertia you use whole javascript framework.

Cushty's avatar
Level 4

@coni hi thanks for the reply, can you elaborate a bit please, thanks

coni's avatar
coni
Best Answer
Level 28

@Cushty I've used Vue components as "web components" in standard blade files, but the same applies to React. You can define a React component as a custom element in HTML.

This is useful when you want to place just one or a few elements on a page, rather than using a JavaScript framework for the entire page. This makes sense if your components are quite complex and you don't want to use plain JavaScript or lightweight frameworks like Alpine.js.

More details: https://legacy.reactjs.org/docs/web-components.html

Please or to participate in this conversation.