Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Rename React.SFC to React.FC #1

Merged
merged 1 commit into from
Nov 15, 2019
Merged

Conversation

wdoug
Copy link

@wdoug wdoug commented Nov 8, 2019

Since React functional components are no longer necessarily stateless, the React.SFC type has been deprecated in favor of React.FC (short for React.FunctionComponent). This PR updates to the new type name.

Copy link

@augustineezinwa augustineezinwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wdoug wdoug merged commit 2d59522 into CrisisTextLine:master Nov 15, 2019
@wdoug wdoug deleted the react-fc branch November 15, 2019 21:59
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