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

kimjihona's avatar

Blade vs JS Framework

Hello, I wonder what do you think about using blade template vs a JS framework? Thank you!

0 likes
6 replies
martinbean's avatar

@kimjihona Why do I think in terms of what? 🤷‍♂️

Blade is a PHP templating language that’s processed on the server and rendered to HTML. JavaScript frameworks are, well, frameworks written in JavaScript that run in the browser. It’s like asking what I think between apples and oranges.

2 likes
kimjihona's avatar

@martinbean maybe I didn't ask it correctly. I'm wondering if I should use .blade.php or connect the laravel backend with react. Hope I make sense.

jlrdw's avatar

I use both. Verses is not even applicable.

2 likes
mike_isp's avatar

IMO this mostly depends on:

  1. Whether you're just as comfortable writing JS as PHP, and
  2. How dynamic your frontend needs to be.

If you're a lot more fluent in PHP than JS you'll probably find that Breeze suits better, because all the data you're manipulating to send to the views is done via PHP and the templating is basically HTML with some extras. The React route will require more of that manipulation to happen in JS.

And for 2, if you have more static views versus a lot of live filtering/component switching etc the need to do a server reload is less of a problem.

This tradeoff is also why Inertia and Livewire exist. They both let you leverage server side features like routing while bypassing full server page reloads.

I don't think there's any problem with using Breeze until you feel you outgrow it and a different FE is warranted.

1 like

Please or to participate in this conversation.