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: docs/Introduction.mdx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ route: /
7
7
## The problem
8
8
There cases when you want to check if a value is a React component. You might even want it to be typeguarded. Checking for React components isn't trivial at all. For example it depends on which JavaScript syntax you're using.
9
9
## The solution
10
-
`react-type-check` checks if the value is some sort of a React component and also tells Typescript if it is.
10
+
`react-type-check` checks if the value is some sort of a React component and also tells TypeScript if it is.
11
11
## Getting started
12
12
Install this package as a dependency:
13
13
```
@@ -36,7 +36,7 @@ if (isReactComponent(maybeRC)) {
36
36
```
37
37
38
38
```tsx
39
-
// Typescript
39
+
// TypeScript
40
40
import { isReactComponent } from 'react-type-check';
41
41
let maybeRC: React.ComponentType | string = () => (
0 commit comments