You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -923,7 +923,7 @@ An exaggerated example where implementing 10 React components with 5 required pr
923
923
924
924
### Props as Discriminated Type
925
925
926
-
When applicable use **discriminated type** to eliminate optional props, which will decrease complexity on component API and only necessary/required props will be passed depending on its use case.
926
+
When applicable use **discriminated type** to eliminate optional props, which will decrease complexity on component API and only required props will be passed depending on its use case.
927
927
928
928
```ts
929
929
// ❌ Avoid optional props as they increase complexity of component API
0 commit comments