Skip to content

[React-Release 2.3] Enable default type parameter in React Component class #15512

New issue

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

Merged
merged 2 commits into from
May 2, 2017

Conversation

yuit
Copy link
Contributor

@yuit yuit commented May 1, 2017

Fix #15455 . This is so that existed library that uses generic React component can use 2.3 (see DefinitelyTyped/DefinitelyTyped#16246) ...The long term fix will be to enable users to be able to specify type argument in JSX Expression and possible infer type argument when tagName is a React Component class. (Note for SFC we already infer type argument as we use chooseOverload to figure out the signature to call).

Kanchalai Tanglertsampan added 2 commits May 1, 2017 11:53
…antiate the constructor signature with the new type arguments.
@yuit yuit merged commit 8a30678 into release-2.3 May 2, 2017
@yuit yuit deleted the release-2.3_fixDefaultTypeParameter branch May 2, 2017 02:29
@yuit yuit mentioned this pull request May 3, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants