Contact us

A Short Guide to Component Naming

Author: Don MBELEMBE, CEO

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.

2. Be Abstract

In order to maximize code reuse, your component names should be extremely generic. If it's a form, name it Form. If it's a button, name it Button.

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.

Everyday English book

Blog

The Future of Web Development: Our Predictions for 2023

Let's explore the latest trends in web development, and regurgitate some predictions we read on X for how they will shape the industry in the coming year.

Read more

3 Lessons We Learned Going Back to the Office

Earlier this year we made the bold decision to make everyone come back to the office full-time after two years working from a dressing table in the corner of their bedroom.

Read more

Tell us about your project

We’ll reply within 1 business day.

Our offices

  • Siège
    Silikin Village
    Concession COTEX N° 63, Ave Colonel Mondjiba, Kinshasa