We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript Version: 1.8.0 / nightly (2.0.0-dev.201xxxxx)
Code
var ElementType = "a"; <ElementType className={className} style={this.props.style}/>
Expected behavior:
create an element with <a>, this is valid on jsx.
<a>
Actual behavior:
error TS2604: JSX element type 'ElementType' does not have any construct or call signatures.
Workaround
React.createElement(ElementType, {className: className, style: this.props.style});
The text was updated successfully, but these errors were encountered:
Duplicate of #8549
Sorry, something went wrong.
@RyanCavanaugh thanks for the response, so this should work on typescript 2 beta right? because i updated to 2 beta and still getting issues
Works fine for me in the latest from master. I don't think the fix was in the Beta build.
master
thanks again, trying on nighty build. this should work correct?
const Abc = "i"; return ( <Abc className={className} style={this.props.style}/> );
edit: all worked good, thanks
No branches or pull requests
TypeScript Version: 1.8.0 / nightly (2.0.0-dev.201xxxxx)
Code
Expected behavior:
create an element with
<a>
, this is valid on jsx.Actual behavior:
Workaround
The text was updated successfully, but these errors were encountered: