New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: BreadcrumbItem
is required as the wrapper of children element
#4651
Comments
Are you using react-hot-loader 3? |
Maybe we should use a static property |
How about this? class BreadcrumbItem extends React.Component {
...
}
BreadcrumbItem.__antBreadcrumbItem = true;
// use
if (elment.type.__antBreadcrumbItem) {
...
} |
Yes, I am using react-hot-loader 3. |
Traced in #4655. |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment(required)
What did you do? Please provide steps to re-produce your problem.
Copy pasted following code into a react component:
What do you expected?
It would work fine as it is taken from official website
What happened?
It renders properly, but I see the following error in console
Warning:
BreadcrumbItemis required as the wrapper of children element
The text was updated successfully, but these errors were encountered: