Skip to content

Commit ece9969

Browse files
authored
Fix typo (#405)
1 parent ec76981 commit ece9969

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ Output of child components.
10811081
### useInput(inputHandler, options?)
10821082

10831083
This hook is used for handling user input.
1084-
It's a more convienient alternative to using `useStdin` and listening to `data` events.
1084+
It's a more convenient alternative to using `useStdin` and listening to `data` events.
10851085
The callback you pass to `useInput` is called for each character when user enters any input.
10861086
However, if user pastes text and it's more than one character, the callback will be called only once and the whole string will be passed as `input`.
10871087
You can find a full example of using `useInput` at [examples/use-input](examples/use-input/use-input.js).

src/hooks/use-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ interface Options {
9090

9191
/**
9292
* This hook is used for handling user input.
93-
* It's a more convienient alternative to using `StdinContext` and listening to `data` events.
93+
* It's a more convenient alternative to using `StdinContext` and listening to `data` events.
9494
* The callback you pass to `useInput` is called for each character when user enters any input.
9595
* However, if user pastes text and it's more than one character, the callback will be called only once and the whole string will be passed as `input`.
9696
*

0 commit comments

Comments
 (0)