Open tc9011 opened 5 years ago
Hi, myxvisual
I read the source code of this project recently. And I have a question about icon component, what the difference between text and span to render icon ?
<PseudoClasses {...attributes} onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave} {...styleClasses} > {useSVGElement ? ( <text>{icon}</text> ) : ( <span>{icon}</span> )} </PseudoClasses>
Hi, myxvisual
I read the source code of this project recently. And I have a question about icon component, what the difference between text and span to render icon ?