Do I really need app.blade.php for a Laravel + React project?

0
9
Asked By CuriousCoder42 On

I'm working on a school project using Laravel and React, but I'm new to programming. Some friends of mine suggested that I shouldn't have the app.blade.php file since it feels like I'm mixing frameworks. They think I should delete it, but I'm not sure if that's the right move. For me, it seems like it's just there to help load my React files. I've also read that it's okay to delete it. Can someone clarify whether I really need this file or not? I'd be happy to provide more details if necessary!

3 Answers

Answered By CodeNinja99 On

If the app.blade.php file is where you mount your React application, then you definitely need to keep it. It acts as the bridge between Laravel and your React app. But if you’re not using any Blade features, and it's part of a simpler setup, you might consider getting rid of it. Just make sure you understand your project structure first!

JavaJourney12 -

I’m coding in WebStorm too, so I guess it’s not that straightforward to just remove it.

Answered By DevWizard33 On

Honestly, as someone who’s seen a lot of projects, a new programmer should be cautious about taking on Laravel with React. It might be tough unless your project is super simple, like an address book. But if you're in your third year and this is a foundation for your final project, then it's nice to push your skills. Just pace yourself!

CuriousCoder42 -

I'm in my third year, and this project is meant to set me up for my final year. I want to create something like Duolingo with at least five database tables, but it’s a bit daunting!

Answered By TechExplorer88 On

Good question! Laravel and Vue are often a common combo, but React is totally valid too. The choice really depends on the learning objectives. React is widely used in the industry, so choosing it for a school project can give you useful experience for future development. And with tools like Inertia.js, you can manage both frameworks easily, making learning smoother.

CodeWhiz3 -

True, my friends chose React for similar reasons. They wanted to challenge themselves and be sure they could help each other.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.