2 ms·
Perhaps you could explain what you mean by "not elegant"? I personally find: <div>Hello {this.props.name}</div> To be more elegant than: React.creat
by aidenn0 12y ago
Perhaps you could explain what you mean by "not elegant"?
I personally find:
<div>Hello {this.props.name}</div>
To be more elegant than:
React.createElement("div", null, "Hello ", this.props.name)
Of course react allows you to use whichever you prefer.