A Short Guide to Component Naming

Vuk Dukic
Founder, Senior Software Engineer
December 21, 2022

1. Brevity is Key

Time is scarce, don’t waste it typing out long, descriptive component names. One approach is to give them short, cryptic names that only you will understand.

Need a button? Call it "btn". A modal? How about "md"? You’ll save precious minutes per day and you’ll get the added benefit of being the only person in the codebase who knows where anything is. This is called job security.

Blog image

2. Rank High in Search

When working in large repos with lots of collaborators, it’s important that your component ranks high when people search for anything.

One way to stand out is to include all the possible search terms in your component name. Instead of “SignInButton” you might want call it “SignInButtonAuthenticationCookieUserLogIn” which will ensure that it is returned in almost any related search result.

Blog image

3. Mix Languages

If you work remotely, it’s likely you are on a global team and yet all your components have English names. This slows down your non-english colleagues considerably so you should allow them to use their native tongue when naming components.

You can create an index file that maps all the different languages within your repo. Need a dropdown? Look for “Desplegable”. A form? Search “Форма”. You’ll learn multiple new languages while being more inclusive to your colleagues.

Share this article:
View all articles

Want to learn more about our healthcare solutions?

Discover how our AI technology can transform your healthcare practice.

Related Articles

The Simple Way to Use AI Chatbots for Lead Qualification featured image
October 31, 2025
Traditional lead qualification methods require significant human resources, create bottlenecks during high-traffic periods, and often fail to capture leads outside business hours. AI chatbots transform this process by automating qualification conversations, collecting critical information, and routing qualified leads to sales teams instantly.
Top Mistakes Businesses Make When Adding Chatbots to Their Website featured image
October 30, 2025
Chatbots have revolutionized how businesses interact with their customers online. They offer 24/7 support, instant responses, and can handle multiple conversations simultaneously. However, despite their potential, many businesses stumble when implementing chatbot technology on their websites.
Chatbots in Marketing: Turning Conversations Into Conversions featured image
October 29, 2025
Anablock examines how to effectively leverage chatbots in marketing, transforming casual conversations into meaningful conversions while avoiding common pitfalls that undermine chatbot success.