basarat / basarat/typescript-react

About React.SFC : Deprecated in react ^17.0.2

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
180
Forks
31
PR merge metrics
No merged PRs in 30d

Description

First of all, thank you very much for the author's demo.

@deprecated
as of recent React versions, function components can no longer be considered 'stateless'. Please use FunctionComponent instead.

we can
```tsx
const StatelessApp:React.FunctionComponent = ( {message } )=>

{message}

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.