Skip to content

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

Merged
Yui (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
Yui (yuit) merged 2 commits into
release-2.3from
release-2.3_fixDefaultTypeParameter

Conversation

@yuit

@yuit Yui (yuit) commented May 1, 2017

Copy link
Copy Markdown
Contributor

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
Yui (yuit) merged commit 8a30678 into release-2.3 May 2, 2017
@yuit
Yui (yuit) deleted the release-2.3_fixDefaultTypeParameter branch May 2, 2017 02:29
@yuit Yui (yuit) mentioned this pull request May 3, 2017
@microsoft 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