// This Javascript <a> tag generates correctly
React.createElement('a', {href:"mailto:"+this.props.email}, this.props.email)
然而,我正在努力使用JSX进行重新创建
<a href="mailto: {this.props.email}">{this.props.email}</a>
// => <a href="mailto: {this.props.email}"></a>
href 标签认为 {this.props.email}
是一个字符串,而不是动态输入 {this.props.email}
的值。有任何想法在哪里我错了吗?