The official documentation says that there could be a data
and a props
option in a component.
For me it seems a sort of excessive functionality.
Why do I need both properties and data in my component? Which goals they are aimed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…