Is it possible to use React.js on the client side only with my traditional glass

I have a web application. He got a very traditional tech stack. On the server side, Apache Struts, the database is db2, and on the client side I use jQuery. The application is deployed on top of websphere.

I recently started actively using jQuery on several pages, and I slowly began to see that the jQuery code behind some pages was turning into spaghetti code.

I want to use some of the new javascript frameworks to create an additional client-side jQuery framework. Unfortunately, I am attached to the server-side technologies that I use.

I've been reading React.js lately, but I'm a little confused by the fact that this technology is for the server or client side.

Can I save my server-side technologies and use React.js to add client-side jQuery code more structured?

I also believe that React.js has a built-in ability to embed a mobile application. Can I make this work if I use my current server-side technologies and add React.js only on my client side (if possible).

thanks

+4
source share
1 answer

Yes, this works great - React just displays the components, you can use it with any server rendering technology you want. You can also use it in many other client-side data libraries to create more complex things.

, React , jQuery . React , DOM, - "" React .

+3

Source: https://habr.com/ru/post/1611511/


All Articles