score:1

Accepted answer

sure -- just create the element dynamically and compose it.

render(){
  const tag = `h${this.props.size}`


  return <tag>just a moment...</tag> 
}

...

<foo size={2} />

Related Query

More Query from same tag