Skip to content

Never can get Tag's name to return the name of the React Component #465

Answered by mfix-stripe
mattiel asked this question in Q&A
Discussion options

You must be logged in to vote

@mattiel you could just compare against === Heading instead of === 'Heading', where Heading is the function component you mentioned above.

Let me know if that solves your issue.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mattiel
Comment options

@mfix-stripe
Comment options

Answer selected by mfix-stripe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants