In react, you cannot pass a child as a prop, it needs to be contained within the element. This documentation is misleading and leads to errors, and thus should display code that is valid.
Closes #
📝 Description
In react, you cannot pass a child as a prop, it needs to be contained within the element. This documentation is misleading and leads to errors, and thus should display code that is valid.
⛳️ Current behavior (updates)
Stop React from throwing an error when using code from documentation
🚀 New behavior
Correct documentation with code that does not throw errors
In react, you cannot pass a child as a prop, it needs to be contained within the element. This documentation is misleading and leads to errors, and thus should display code that is valid.
Closes #
📝 Description
⛳️ Current behavior (updates)
🚀 New behavior
💣 Is this a breaking change (Yes/No):
No
📝 Additional Information