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

✨ descriptive state names #114

Open
astroash opened this issue Oct 10, 2019 · 0 comments
Open

✨ descriptive state names #114

astroash opened this issue Oct 10, 2019 · 0 comments

Comments

@astroash
Copy link

astroash commented Oct 10, 2019

const [index, setIndex] = React.useState(0);

What is this the index of? Try to be more descriptive with your variable names. Even if this means that they are verbose.

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

No branches or pull requests

2 participants