ask Daniel, I now have three pages with roughly the same layout, only a few components or different text, how to build components is better, now think of two kinds:
- write a Common component. All three pages introduce Common, pass values through different props, and control the layout
- write a parent component Common, and the other three pages extends, the parent component, to control the behavior in data,methods.
which is better, or how do the gods achieve it?