visit
Her results are that the mean length of a component name is 27 characters:
ImA27CharacterComponentName
. And the longest component name counts 66 characters. She also gives two examples for some very long component names.CometSearchTypeaheadInternalLayoutInlineStrategyWithScrollableView
CoronavirusCommunityHelpCometRequestOfferHelpCreateDialog
Therefore, it is critical to quickly understand what a component does rather than to save a few milliseconds while writing the code.
That is why I argue that you should worry much less about your component names getting too long and instead focus on getting them right. It’s more important to stick to some general rules and best practices when choosing the names for your components.
Don’t worry about your component names becoming too long! Instead, focus on coming up with descriptive names and rigorously follow the best practices I mentioned above. In the long run, it pays off.
Previously published at