Skip to content

Update ts-snippets.json to import ReactElement #94

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

Closed
wants to merge 1 commit into from

Conversation

acco
Copy link

@acco acco commented Nov 12, 2019

We need to add ReactElement to the import statement for snippets tsrfc and tsrfce.

We need to add `ReactElement` to the import statement for snippets `tsrfc` and `tsrfce`.
@acco
Copy link
Author

acco commented Nov 12, 2019

Beaten to it in #93 :)

@acco acco closed this Nov 12, 2019
@FOSSforlife
Copy link

FOSSforlife commented Apr 25, 2020

If I'm not mistaken, I think function components should be typed as FunctionComponent instead of ReactElement. This is the guide I've been using. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants