FVSA, a design proposal from a Japanese developer that groups React screen code by feature and separates calculation from external operations(zenn.dev)
Writing language: KoreanRead in the original language
Plain summary
- This is a design proposal to group app code into folders by feature, not by technical kind such as screens, functions, or types, so that fixing one order feature does not require moving between several folders. The name was given by the author in this article and is not a standard term.
- Direct references between features are blocked in principle. The product model and data access code used by several features go in a separate shared layer, and combining features is handled by the upper app layer.
- Inside each feature, pure calculation that gives the same result for the same input is separated from external operations such as API calls. The author explains that pure calculation can be tested without mock objects.
- The author states that this is not a new invention but a combination of existing approaches such as Vertical Slice Architecture, Feature-Sliced Design, and Bulletproof React. The author adds that the example code is simplified and that real order processing requires server-side validation, authorization, and more.
Found on
Zenn ↗ / Published by source
Have you run into something like this? Tell us in a line or two what you did. You do not need to know the product.