- 1 current stop: learning
- 2 upcoming
- 3 upcoming
- 4 upcoming
- 5 upcoming
Finish after stop 5
Stop 1 of 5 · Courier depot: unloading the vans
Trick to keep in mind+3 XP
Whatever sits between the tags is the filling that the wrapper serves as children.
When you put content between a component's opening and closing tags, React bundles it up and gives it to that component under the name children. The wrapper can place it anywhere in its own markup without knowing what it is. It is not limited to text: elements, other components and arrays all travel the same way.
Read it once, then a question tests whether the trick stuck.