A Short Guide to Component Naming

by Vuk Dukic, Senior Software Engineer

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.

Schedule a demo

More articles

Blog Post Ideas That Turn Dental Readers Into Booked Appointments

Creating compelling blog content is one thing, but crafting posts that actually convert readers into booked appointments is an art form that many dental practices struggle to master. While having an active blog demonstrates expertise and improves SEO, the ultimate goal should be turning those website visitors into patients sitting in your chair

Read more

How CRM Systems Can Improve Patient Experience in Dentistry

Customer Relationship Management systems in dentistry are specialized software platforms designed to manage all aspects of patient interactions and data. Unlike generic business CRMs, dental-specific systems integrate clinical workflows, treatment planning, and regulatory compliance requirements. These platforms consolidate patient information, communication history, treatment records, and financial data into a unified system that enables practices to deliver personalized, efficient care.

Read more