R
R
Roman2019-03-18 13:21:48
React
Roman, 2019-03-18 13:21:48

Is it possible (and necessary) to mix a React.js frontend with a "regular" (non-SPA) frontend within the same site?

Hello.
I just started learning React and immediately as I studied the question of the scope of its applicability. The essence of the question is this:
- SPA is such a specific topic (well, as I see it) - making a website (we are talking about site building) like a SPA is far from always justified. Including, and based on the cost of development and support.
On the other hand, of course, I want to have some features on the site, such as displaying data in an interactive table, or even just some Ajax menus, etc.
The question is:
- Is it possible, roughly speaking, to have on the site (eg based on Laravel) some pages - "simple pages" - Laravel views, and some - React applications?
Or am I writing nonsense now?))
I just don't really understand yet how it can be combined, to what extent.
Is it possible, for example, the whole site - "just a site", and some block - for example. header mega menu - in React?
I hope I have made the point clear.
Thank you.
PS You can also reformulate the question like this: can I fully replace React with jQuery?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-03-18
@procode

You can have an unlimited number of React modules per page.
But for your task, Vue is better, as it is more convenient for partial integration.
Firstly, not SAP, but SPA. Secondly, if we talk about serious commercial projects, then the development of a SPA on React will cost less than the monster "views" on Laravel + "mega-menu" on React. And it will be much easier to maintain SPA.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question