Skip to content

Commit

Permalink
Fix "Redeclare" typo (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan281094 committed Feb 10, 2024
1 parent 3bbc27f commit 4d6be66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ export function ClickableList<T>(props: ClickableListProps<T>) {
##### Option 2 - Redeclare forwardRef

```ts
// Redecalare forwardRef
// Redeclare forwardRef
declare module "react" {
function forwardRef<T, P = {}>(
render: (props: P, ref: React.Ref<T>) => React.ReactElement | null
Expand Down
2 changes: 1 addition & 1 deletion docs/basic/getting-started/forward-create-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function ClickableList<T>(props: ClickableListProps<T>) {
### Option 2 - Redeclare forwardRef

```ts
// Redecalare forwardRef
// Redeclare forwardRef
declare module "react" {
function forwardRef<T, P = {}>(
render: (props: P, ref: React.Ref<T>) => React.ReactElement | null
Expand Down

0 comments on commit 4d6be66

Please sign in to comment.