Skip to content

Commit 4b25ac4

Browse files
committed
update docusaurus
1 parent e679083 commit 4b25ac4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

website/src/pages/index.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@ const [isActive, setIsActive] = useState(false); // Inferred as 'boolean'
116116

117117
Immutability should be a key principle. Wherever possible, data should remain immutable, leveraging types like `Readonly` and `ReadonlyArray`.
118118

119-
Using readonly types prevents accidental data mutations and reduces the risk of bugs caused by unintended side effects. This ensures that data integrity is maintained throughout the application lifecycle.
120-
121-
When performing data processing, always return new arrays, objects, or other reference-based data structures. To minimize cognitive load for future developers, strive to keep data objects flat and concise.
122-
Mutations should be used sparingly and only as a last resort, in cases where they are truly necessary, such as when dealing with complex objects or optimizing for performance.
119+
- Using readonly types prevents accidental data mutations and reduces the risk of bugs caused by unintended side effects. This ensures that data integrity is maintained throughout the application lifecycle.
120+
- When performing data processing, always return new arrays, objects, or other reference-based data structures. To minimize cognitive load for future developers, strive to keep data objects flat and concise.
121+
- Mutations should be used sparingly, in cases where they are truly necessary, such as when dealing with complex objects or optimizing for performance.
123122

124123
```ts
125124
// ❌ Avoid data mutations

0 commit comments

Comments
 (0)