@nhatdev94/common-ui 1.3.6 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ export default async function DemoPage() {
|
|
|
51
51
|
}
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
- [Data Table](
|
|
54
|
+
- [Data Table](./docs/table.md)
|
|
55
55
|
|
|
56
56
|
------------------------------------------------------------------------
|
|
57
57
|
|
|
@@ -60,13 +60,13 @@ export default async function DemoPage() {
|
|
|
60
60
|
### Các quy tắc (Rules) cần tuân thủ
|
|
61
61
|
Để đảm bảo tính ổn định, mọi đóng góp phải tuân thủ:
|
|
62
62
|
|
|
63
|
-
- Naming
|
|
63
|
+
- **Naming**: Sử dụng PascalCase cho tên component và kebab-case cho tên file.
|
|
64
64
|
|
|
65
|
-
- No Side Effects
|
|
65
|
+
- **No Side Effects**: Tuyệt đối không gọi API hoặc chứa logic nghiệp vụ (Business logic).
|
|
66
66
|
|
|
67
|
-
- Independence
|
|
67
|
+
- **Independence**: Không phụ thuộc vào Redux, Zustand hoặc App Context của dự án tích hợp.
|
|
68
68
|
|
|
69
|
-
- Naming Props
|
|
69
|
+
- **Naming Props**: Interface cho props phải có định dạng ComponentNameProps.
|
|
70
70
|
|
|
71
71
|
### Quy trình thực hiện (Workflow)
|
|
72
72
|
#### Giai đoạn 1: Cập nhật tại Package (Pkg Side)
|