Do you know what Feature Sliced Design (FSD) is?
sobes.tech AI
Answer from AI
Feature Sliced Design (FSD) is a methodology for organizing frontend code, focused on dividing the application into functional slices (features).
The main idea of FSD is to structure the project so that each feature is as isolated as possible and contains all necessary layers (UI, business logic, data, etc.). This facilitates maintenance, scaling, and reusing code.
Instead of traditional layer division (e.g., components, services, models), FSD proposes dividing the project into:
- App — the root level of the application.
- Pages — pages or screens.
- Features — individual functional capabilities.
- Entities — business entities.
- Shared — common utilities and components.
Each layer contains its modules, which helps avoid tight coupling and improves readability.
Example: if you have a "User Profile" feature, then in the folder features/profile, all components, hooks, services related to the profile will be stored.
This simplifies navigation through the project and speeds up development, especially in large teams.