Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Refactor: Convert into TypeScript #23
Refactor: Convert into TypeScript #23
Changes from 16 commits
87d1eb8
47ed0ea
e488b03
7b0b93e
0248b2b
ab81376
d127b38
e8d867c
115629c
e7afe16
971276b
42bd359
459d7dd
717d067
432d871
2bc692b
250edf4
3572b53
ad7ff69
91218d7
0296be7
14eec5e
581ae52
ba6864d
1d70034
285dd5b
9a310e9
0244e57
50c5ba5
5268d9e
7c4a395
7914786
427b210
f9d17ac
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not good at it, but shouldn't we use
React.FC
everywhere? I mean:See: https://github.com/typescript-cheatsheets/react#section-2-getting-started
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type is inferred. It's not necessary, even in strict mode. Could type it, but it's essentially like doing:
In fact, there's apparently reasons to avoid
React.FC
altogether.Sorry, I've been playing around in Preact land for the past 6 months and it has entirely replaced React for me. Few differences in typing the two, so I might be out of touch with React specific typings, and now there seems to be a movement against
React.FC
as of recently.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright.
I'm actually okay with any solution you choose here)
This file was deleted.
This file was deleted.
This file was deleted.