跳转到主要内容

1 篇文章 篇标记为 "bem" 的文章

查看所有标签

The Naming Convention That Will Save Your App

· 阅读时间 1 分钟
Evan Carter
Evan Carter
Senior frontend

TLDR:

Frontend Naming Conventions

In large frontend apps, inconsistent naming turns every change into a hunt. This guide shows proven JavaScript/TypeScript and component naming practices, explains BEM and modern CSS naming approaches, and then introduces Feature-Sliced Design’s Layer–Slice–Segment convention—so your folder structure and public APIs make boundaries obvious, reduce coupling, and keep the codebase maintainable as your team grows.