Content-Length: 278200 | pFad | http://github.com/typescript-cheatsheets/react/commit/3129901a147edb125ea84fd35bf30a811e79e551

A6 Fix typos (#723) · typescript-cheatsheets/react@3129901 · GitHub
Skip to content

Commit 3129901

Browse files
authored
Fix typos (#723)
1 parent ed18a5a commit 3129901

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/advanced/patterns_by_usecase.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ const Link = <T extends {}>(
505505
<details>
506506
<summary><b>Approach: Composition</b></summary>
507507

508-
If you want to conditionally render a component, sometimes is better to use [React's composition model](https://reactjs.org/docs/composition-vs-inheritance.html) to have simpler components and better to understand typings:
508+
If you want to conditionally render a component, sometimes it is better to use [React's composition model](https://reactjs.org/docs/composition-vs-inheritance.html) to have simpler components and better to understand typings:
509509

510510
```tsx
511511
type AnchorProps = React.AnchorHTMLAttributes<HTMLAnchorElement>;
@@ -743,7 +743,7 @@ const Component = () => (
743743
);
744744
```
745745

746-
While this works, representing and empty object with `Record<string, never>` [is not officially recommended](https://github.com/microsoft/TypeScript/issues/47486#issuecomment-1015671856). It might be better approaching this in another way, to avoid trying to type "an exactly empty object". One way is grouping the required props in an optional object:
746+
While this works, representing an empty object with `Record<string, never>` [is not officially recommended](https://github.com/microsoft/TypeScript/issues/47486#issuecomment-1015671856). It might be better approaching this in another way, to avoid trying to type "an exactly empty object". One way is grouping the required props in an optional object:
747747

748748
```tsx
749749
interface Props {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/typescript-cheatsheets/react/commit/3129901a147edb125ea84fd35bf30a811e79e551

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy