-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Use immediate export when there is no HOC #16005
Conversation
Should I update |
No bundle size changes comparing 4fccafb...ef33478 |
While we're on the topic of consistency, perhaps we should enable https://palantir.github.io/tslint/rules/ordered-imports/ |
Not a fan of these kind of rules i.e. stylistic rules. What's the rationale for using it? |
Just keeping things in the same order across all the demos, doesn't really matter though. |
@merceyz I love it 😍! |
@oliviertassinari Here is the regex if you want it (function )(?<functionName>\w*)((.|\r?\n)*?)(\r?\n*export default \k<functionName>;\r?\n) Replace with: |
const classes = useStyles();
andreturn
Only applied to demos with a typescript version
See #16003 (comment)