Skip to content
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

[v4] Replace SFC with FunctionComponent #3725

Closed
imhele opened this issue Mar 12, 2019 · 2 comments
Closed

[v4] Replace SFC with FunctionComponent #3725

imhele opened this issue Mar 12, 2019 · 2 comments

Comments

@imhele
Copy link
Contributor

imhele commented Mar 12, 2019

/**
 * @deprecated as of recent React versions, function components can no
 * longer be considered 'stateless'. Please use `FunctionComponent` instead.
 *
 * @see [React Hooks](https://reactjs.org/docs/hooks-intro.html)
 */
type SFC<P = {}> = FunctionComponent<P>;
@xiaohuoni
Copy link
Member

好像SFC跳转到定义的时候,就是FunctionComponent

@imhele imhele mentioned this issue Mar 12, 2019
5 tasks
@imhele
Copy link
Contributor Author

imhele commented Mar 14, 2019

Closed via #3723

@imhele imhele closed this as completed Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants