【问题标题】:Naming convention for components doing CRUD operations执行 CRUD 操作的组件的命名约定
【发布时间】:2021-10-26 10:51:50
【问题描述】:

假设我有用户的 CRUD。我应该如何命名组件:UserEditUserDelete 等或EditUserDeleteUser 等?

【问题讨论】:

    标签: naming-conventions crud


    【解决方案1】:

    看着React Admin Demo,我决定遵循从一般到具体的规则-UserDelete。此外,它看起来更容易找到文件。

    【讨论】:

      猜你喜欢
      • 2010-10-31
      • 2015-12-15
      • 1970-01-01
      • 1970-01-01
      • 2010-10-29
      • 1970-01-01
      • 2012-12-07
      • 2016-09-23
      • 1970-01-01
      相关资源
      最近更新 更多