Open chesteralan opened 3 years ago
Great work on this.
https://www.chromatic.com/test?appId=5f43c1219b70f800227245f3&id=5fe6f43b760fa70021339240
This is the line the error is referring to:
return <span {...props} >{children}</span>
This is most likely because the whole of props is being spread into the span
, which includes the inline
prop. React is then trying to render this as a DOM attribute since it's entirely lowercase.
If you set inline
to an empty string, then the error goes away e.g.
validateDOMNesting(...): <div> cannot appear as a descendant of <p>.