Why should vue's props be explicitly defined? React doesn't need it?

Why should the props of

vue be explicitly defined? React doesn"t need it?

Oct.14,2021
The purpose of

is probably to distinguish between the value passed in by the parent component and the value defined in its own data


is not certain. $attrs
shows a definition that simply says that your component supports some of the features defined by props .


react also has propTypes

Menu