As the title, in vue.js , react.js How to extract the components is a better experience? The code before the project I'm working on is extremely confusing, so I need to refactor it.
For example, the home page has so many functions that there are thousands of lines of code. Is it a better strategy to extract every block and make it into a component?
What kind of situation needs to extract components?
If extracting components, how should props and events be considered?
Is there a better component extraction specification or solution?
PS: according to the specifications of Dachang, I talked with the head of the team before saying that I had seen some Alipay component extraction specifications, but I can't find them now.