Two, Rreact --- Sons assembly between traditional values

A parent component subassembly to pass the value (PS: Parameter passing parent component, subassembly passed over by the component to the parent props receiving sub-assembly in the form of properties.)

See examples (below two pictures): At this point then, the console will have a key value of the warning, so this also need to add key = {index} in TodoItem tag on it. The PS: <TodoItem Key index} = { Content} = {Item />

 

Second, the value is passed to the parent sub-assembly components

No, stay tuned. . .

 

Guess you like

Origin www.cnblogs.com/xintao/p/11314495.html