Do not consider namespaces when checking for DOM #2638
When testing whether a component is a DOM element, we select the first portion of the name up until
There are many problems with this:
It may be a dangerous change, but
UPDATE: So this triggers a "chain reaction" in
I performed more tests and found this bit of code that explains it: https://github.com/babel/babel/blob/c3a5bf1ff5bd0df437bc20752464d08674d011d3/packages/babel-types/src/validators/react/isCompatTag.js#L2
I'll revert to (almost) the same RegExp and will add a comment.