Contains the children property but does not allow for text nodes (strings or numbers). Useful for cases where text nodes are not allowed.
children
A common case is with conditional rendering of content, where conditional rendering of text nodes causes errors when browser translation is enabled. See https://github.com/facebook/react/issues/11538#issuecomment-390386520 for details.
Contains the
childrenproperty but does not allow for text nodes (strings or numbers). Useful for cases where text nodes are not allowed.A common case is with conditional rendering of content, where conditional rendering of text nodes causes errors when browser translation is enabled. See https://github.com/facebook/react/issues/11538#issuecomment-390386520 for details.