What’s are React JS features
The important features of React JS are as following :
- JSX
- Components
- One-way Data Binding
- Virtual DOM
- Simplicity
- Performance
….
What’s are LARAVEL’s features
- Template Engine
- Automatic Pagination
- MVC architecture
- Artisan command-line interface (CLI)
- Laravel Routing
- Unit Testing
- Highly Secure
- Eloquent ORM (Object Relational Mapping)
….
Combining the Strength of the two Technologies will be something so robust 🔥🔥!!
Since our data will be fetched from the backend via an API, Redux/Redux Toolkit will be the greatest option
Using both React JS and Laravel can be a great option if you want to build a modern, feature-rich e-commerce website. React can be used to build the front-end user interface of your e-commerce website, while Laravel can be used to build the back-end server-side logic and manage the database.
By combining the strengths of both technologies, you can build an e-commerce website that is fast, scalable, and highly interactive. With React, you can build dynamic and responsive UIs that can efficiently update in real-time, while with Laravel, you can build robust and secure back-end logic and manage complex database operations.
However, it's important to note that using both React and Laravel requires a good understanding of both technologies, as well as experience in building web applications. Additionally, integrating the two technologies can be challenging and requires a good understanding of how to connect the front-end and back-end of an application.
In conclusion, using both React and Laravel can be a great choice for building a modern e-commerce website, but it requires a good understanding of both technologies and the ability to integrate them effectively.
In other words, you have two apps, the one with laravel that exposes an api which could be used by any other service in the infrastructure, and the reactjs app which is a nodejs app that consumes that api, and handles the magic of react + redux.
The way your site is actually accessed from the outside world is thru the express/nodejs app, which calls the laravel api for data persistence and other business logic.
The laravel app handles sessions, oauth, the database, file access to the hardrive and so on, while the nodejs app handles the actual website routing, the templates, the css and javascript part.
Here’s an example on github