-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Export more for header #2996
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
Export more for header #2996
Conversation
psychedelicious
left a comment
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.
Why are the components exported as classes extending React.Component? Wouldn't it be React.FunctionComponent given these are function components?
psychedelicious
left a comment
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.
Why are the components exported as classes extending React.Component? Wouldn't it be React.FunctionComponent given these are function components?
|
Probably because whatever stackoverflow I copied that from used |
|
I tried changing this to both React.FunctionComponent and JSX.Element and they both presented a slew of type errors in my React app that is rendering this - are you ok to leave as React.Component for now since that seems to play nicely for whatever reason? |
|
Haha, yep gotcha. Maybe I've approved, feel free to rebase and merge at your leisure, or change it if you want. |
|
@blessedcoolant will you take a look when you have a chance please? |
Uh oh!
There was an error while loading. Please reload this page.