How do traditional websites (without vue,react and other component frameworks) achieve component-based development? For example, how did JD.com and Ali achieve it?

lack of project experience, the company"s projects are based on the front-end framework of component-based ideas such as vue,react. How to achieve code reuse by using only html,js, jquery and other technologies?

Jan.16,2022

generally large companies have their own technical teams, a small number of whom are responsible for encapsulating frameworks, plug-in libraries, components, and so on, and then some developers use their own tools for business development.
Pure native direct development, which is common in individuals or small teams, is too inefficient to cope with ever-changing needs and mass production.
before I came into contact with the framework and using the library, my idea is to write common templates and data processing methods in a file, introduce file clone data where needed, and add data processing to the page after data processing .
half a year later, however, I completely abandoned this idea, because the current framework has implemented my idea, and it is more flexible than I thought.


JD.com has NervJS, Ali and eggjs,antd,dva


you can start from the background.
such as Laravel's blade @ component


pure jq development, handwritten component library, event-driven, template engine. That is, some of the ideas of the framework now. Compare exercise js basics, exercise code specification

Menu