Skip to content

Instantly share code, notes, and snippets.

@jamstooks
Last active November 23, 2018 16:34
Show Gist options
  • Save jamstooks/e4ae5b99bc1e4667c4272b362c8653e4 to your computer and use it in GitHub Desktop.
Save jamstooks/e4ae5b99bc1e4667c4272b362c8653e4 to your computer and use it in GitHub Desktop.
Thoughts

Random thoughts on code

index.js files get confusing in IDE tabs

In some projects I'll have 7 tabs open and six of them are labeled index.js. This can get super confusing.

So, instead of:

src/containers/UserContainer/index.js

Have index.js export a UserContainer

src/containers/UserContainer/index.js
src/containers/UserContainer/UserContainer.js

This way UserContainer.js will show up in the tab name instead of the ambiguous index.js.

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