Anablock Logo

A Short Guide to Component Naming

Vuk Dukic profile picture
Vuk Dukic
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.

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.

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

Preventive Dental Marketing: Tackling Sugar Consumption Through Public Health Campaigns featured image
September 12, 2025
The dental industry is experiencing a paradigm shift from reactive treatment to proactive prevention, and savvy practices are capitalizing on this trend through innovative public health marketing campaigns. With sugar consumption remaining the leading dietary cause of dental disease, practices that position themselves as community health advocates rather than just treatment providers are seeing unprecedented growth in patient acquisition and loyalty.
WhatsApp & Messenger Marketing: Conversational Commerce for Dental Clinics featured image
September 11, 2025
The shift toward messaging-based patient communication isn't just a trend, it's a fundamental change in how patients expect to interact with healthcare providers. Modern patients demand instant, convenient communication that fits their mobile-first lifestyle.
Wellness Branding: Positioning Dentistry as Part of a Lifestyle Choice featured image
September 10, 2025
Forward-thinking dental practices are transforming their brand positioning from medical necessity to lifestyle enhancement. This shift isn't just about marketing, it's about fundamentally reimagining how dentistry fits into patients' wellness journeys and personal brand narratives.