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

Higher order function naming convention #22

Open
constgen opened this issue Jun 11, 2019 · 0 comments
Open

Higher order function naming convention #22

constgen opened this issue Jun 11, 2019 · 0 comments
Labels
rule Validation rule

Comments

@constgen
Copy link
Contributor

Functions that start with on..., e.g. onWindowResize, onMount always should be higher order functions that allow a callback as an argument. They can be called in the code with callbacks but can't be passed as arguments to another functions.

@constgen constgen added the rule Validation rule label Jun 11, 2019
@constgen constgen added this to the Typed names (Milestone 2) milestone Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Validation rule
Projects
None yet
Development

No branches or pull requests

1 participant