DEV Community

Discussion on: Stop Using React

 
joelbonetr profile image
JoelBonetR 🥇 • Edited

well, even having those caveats (no static typing, single thread, performance...) still have some benefits such as being multi-platform (almost run everywhere), easy to learn and there are tools that "patches" JS "issues" such as TypeScript (javascript superset), and so, and browsers increased the performance of JS engines a lot too. It's used widely and consistently because there's no good supported option over the table to replace it yet.

Thread Thread
 
lexiebkm profile image
Alexander B.K.

Since you are a full-stack dev and use Laravel for API as well, which approach/tech do you use and recommend : REST or GraphQL ?
My current Laravel app is a stand alone, in which all requests are handled in web routes not api routes. However, chances are that I will have to build APIs for integration with other apps.

Thread Thread
 
joelbonetr profile image
JoelBonetR 🥇

There's no one to rule them all. You can use GraphQL with gRPC, or RESTful or... Depending on the needs of a project. My advice is to learn about and know the tech, then you can discern which stack is better for a job.

With GraphQL you can add a single endpoint for example but this could cause overheating on that endpoint. You can use services or microservices too with one or another.

Thread Thread
 
lexiebkm profile image
Alexander B.K.

Thanks for your advice.
One more question, for API authentication in Laravel : which tech/approach do you use/recommend : Passport, JWT, Sanctum or any other ? I am still considering which one I will use.

Thread Thread
 
joelbonetr profile image
JoelBonetR 🥇

Again check the differences and the compatibility or support on both front and back current stack, pick one and don't look back

Some comments have been hidden by the post's author - find out more