I'm creating a standard calculator in a reactjs projects. There is a button which calculates x power 2 for that i'm using html element <sup>
to do that but that is not working
<Button name = "x<sup>2</sup>" clickHandler = {this.buttonClickHandler} />
Button element is created from this code:
<button onClick = {this.buttonClickHandler}>{this.props.name}</button>