I want to show a "cubic" html object (superscript 3). I do like this:
const formatArea = function(val){
return val + " ft³";
}
where formatAreacalled from inside the component:
render(){
return (
<div>
{formatArea(this.props.area)}
</div>
);
}
but the browser shows it as ft³
source
share