Skip to content

Commit

Permalink
Fix typo in docs/introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
flextremedev authored Apr 7, 2021
1 parent c8d00cb commit 4504f17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ route: /

# Introduction
## The problem
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.
There may be 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.
## The solution
`react-type-check` checks if the value is some sort of a React component and also tells TypeScript if it is.
## Getting started
Expand Down Expand Up @@ -49,4 +49,4 @@ if (isReactComponent(maybeRC)) {
} else {
const notRC: string = maybeRC;
}
```
```

0 comments on commit 4504f17

Please sign in to comment.