I am trying to output some svgs and output them from a list, here is my render method:
render() {
const renderTag = () => {
const Tag = this.props.id
return(<Tag />)
}
return (
<div key={this.props.name} className="social-box">
<a className={this.props.id + "-link"}>
{renderTag()}
</a>
</div>
)
}
However, the DOM node is always lowercase i.e. <facebook>
rather than <Facebook>
this.props.id
is correctly rendered to the console as Facebook
. Can anyone tell me why react or the browser incorrectly renders as lowercase, and therefore not the component, and how to fix?