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

Add React.FC example with predefined type #714

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

mtrenker
Copy link
Contributor

To show a fair comparison between the different approaches on how to type a react component, the React.FC<AppProps> approach should also be listed. It may be technically similar but has the best readability from my experience.

To show a fair comparison between the different approaches on how to type a react component in a readable way, the React.FC<AppProps> approach should be also listed. It may be technically similar but has the best readability from my experience. (left to right instead right to left)
@filiptammergard
Copy link
Collaborator

@mtrenker Sounds good! Can you run yarn gen-readme and commit the diff to make CI green?

@filiptammergard
Copy link
Collaborator

Thanks!

@filiptammergard filiptammergard merged commit e867ed2 into typescript-cheatsheets:main Jun 17, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants