By value between the components react

1. the parent to the child ( using the props pass value )

2. parent to child deeper ( by value by context )

3. The child to the parent ( through the callback function by value: Create a function within parent components received parameter value pass over the subassembly, this subassembly functions as the attribute is transmitted to the parent sub-assembly through the assembly, and then, by subassembly props call the function simultaneously receives and parameter passing )

4. traditional values ​​(eg: between Brother assembly) between components without any nested relationship

Guess you like

Origin www.cnblogs.com/yieix/p/12004664.html