What are the pros and cons of react.js writing a website?

at present, the company"s official website is implemented by individuals, mainly static pages, which has now been completed.

the technology used is the most primitive HTML, CSS, js, jquery

but the head of the site is the same as the bottom, and every page is the same. Every time you modify it here, you need to replace it globally, which is still troublesome.

so react.js, is introduced. You only need to define the bottom of the header once in my-react.js, and then introduce it on each page. You can render the same header and bottom

.

the current situation is only partial use of react.js

what are the problems if the website is all implemented by react.js? Tell me about the pros and cons of implementation ?

Mar.10,2021

if you only want to solve the problem of modifying repetitive work in the public part of the page,
you can modify the server configuration slightly. Supporting the html file include
react.js may not be very friendly to seo


analyzing your needs is to solve the same repetitive work of the head and tail. Ejs's include can solve your problem very well.
the advantage of using react is that you can learn from the front-end mainstream framework


to introduce a frame for the head and tail?

Menu