[React]Props tip: the relationship between function parameter and attribute
[preface] From React doc, we all know that props cannot only be attribute, it also can be function, object and arrays. Just like to know the explicit position why foo can not only pass value through function parameter(it's obviously clear) but can tuck them in components? [solution] predefined as React doc tell of.
[preface]
From React doc, we all know that props cannot only be attribute, it also can be function, object and arrays. Just like to know the explicit position why foo can not only pass value through function parameter(it's obviously clear) but can tuck them in components?
[solution]
predefined as React doc tell of.