Closed Kronuz closed 5 years ago
In my project, for some reason, JSXOpeningElement isn't being visited for all elements (any idea?); however on those, JSXElement does get visited.
JSXOpeningElement
JSXElement
I fixed things here by also adding a JSXElement visitor which basically just calls JSXOpeningElement:
JSXElement(path, state) { _JSXOpeningElement(path.get('openingElement'), state); }, JSXOpeningElement(path, state) { _JSXOpeningElement(path, state); },
FormattedMessage is a self-closing tag which is prob the reason why this happens
FormattedMessage
In my project, for some reason,
JSXOpeningElement
isn't being visited for all elements (any idea?); however on those,JSXElement
does get visited.I fixed things here by also adding a
JSXElement
visitor which basically just callsJSXOpeningElement
: