I was trying to call a component dynamically like this
var Tagname = 'Species';
options.push(<Tagname {...attrs}/>);
And im getting a warning in the console as
Warning: <Species /> is using uppercase HTML. Always use lowercase HTML tags in React.
Warning: The tag <Species> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
All other codes are working fine. But this component does not working. How can i fix this?
React.createElement(Tagname, attrs)<DIV....for instance?