Is this possible to pass an inline SVG as component prop (and not as component child). I tried with a method like below but that doesn't work :
mySvg1() {
return (<svg xmlns="... ></svg>);
}
render() {
<AnotherComponent icon={this.mySvg()} />
}