Skip to content

Use hook syntax for builtin React hooks in xplat (1/2)#43714

Closed
alexmckenley wants to merge 1 commit into
facebook:mainfrom
alexmckenley:export-D55500989
Closed

Use hook syntax for builtin React hooks in xplat (1/2)#43714
alexmckenley wants to merge 1 commit into
facebook:mainfrom
alexmckenley:export-D55500989

Conversation

@alexmckenley

Copy link
Copy Markdown

Summary:
Migrate React builtin hooks to use the new React "hook" type. This diff converts all builtin hooks except for useContext which will be updated after the next flow release.

Details:

Changelog: [flow] Suppress react builtin hook errors

Reviewed By: SamChou19815

Differential Revision: D55500989

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Mar 29, 2024
Summary:

Migrate React builtin hooks to use the new React "hook" type. This diff converts all builtin hooks except for `useContext` which will be updated after the next flow release. 

Details:
- Announcement: https://fb.workplace.com/groups/react.fyi/posts/7642294409114198
- Docs: https://www.internalfb.com/intern/wiki/Component_Syntax_Documentation/Hook_syntax_0/
- Support group: https://fb.workplace.com/groups/749069370011855

Changelog: [flow] Suppress react builtin hook errors

Reviewed By: SamChou19815

Differential Revision: D55500989
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D55500989

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D55500989

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 1b4a0cd.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants