Skip to content

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

Merged
yuit merged 2 commits into
release-2.3from
release-2.3_fixDefaultTypeParameter
May 2, 2017
Merged

[React-Release 2.3] Enable default type parameter in React Component class#15512
yuit merged 2 commits into
release-2.3from
release-2.3_fixDefaultTypeParameter

Conversation

@yuit
Copy link
Copy Markdown
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