Skip to content

Commit 9c7f84d

Browse files
committed
update docusaurus
1 parent adcf54f commit 9c7f84d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/pages/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const [userRole, setUserRole] = useState<UserRole>('admin'); // Type 'UserRole'
111111

112112
The majority of the data should be immutable, using types like `Readonly` and `ReadonlyArray`.
113113

114-
Using readonly type prevents accidental data mutations, which reduces the risk of introducing bugs related to unintended side effects.
114+
Using readonly type prevents accidental data mutations and reduces the risk of bugs caused by unintended side effects.
115115

116116
When performing data processing always return new array, object etc. To minimize cognitive load for future developers, aim to keep data objects flat and small.
117117
Mutations should be used sparingly and only as an exception in cases where they are truly necessary, such as when dealing with complex objects, performance-related reasons etc.

0 commit comments

Comments
 (0)