refactor: add comment on jsx spread attributes

This commit is contained in:
Mark Lawlor
2022-08-10 16:13:09 -03:00
parent 8cb9ab6364
commit b359f82b4e

View File

@@ -12,7 +12,12 @@ export function someAttributes(
const openingElement = path.node.openingElement;
return openingElement.attributes.some((attribute) => {
// Ignore spreads, we cannot process them
/**
* I think we should be able to process spread attributes
* by checking their binding, but I still learning how this works
*
* If your reading this and understand Babel bindings please send a PR
*/
if (isJSXSpreadAttribute(attribute)) {
return false;
}