3 ms·
That doesn't sound right. You can pass whatever you want as props to a composite component; you just can't use objects as a list of children in a DOM component,
by spicyj 11y ago
That doesn't sound right. You can pass whatever you want as props to a composite component; you just can't use objects as a list of children in a DOM component, but that's not what you were doing before. When Ryan Florence filed an issue with seemingly your same misconception, we told him the same and never heard back:
https://github.com/facebook/react/issues/5371 https://github.com/facebook/react/issues/5371
What am I missing?