Skip to content

Commit 5b14fa6

Browse files
committed
translated first 40 lines of useImperativeHandle
1 parent fa3f0cc commit 5b14fa6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/content/reference/react/useImperativeHandle.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: useImperativeHandle
44

55
<Intro>
66

7-
`useImperativeHandle` is a React Hook that lets you customize the handle exposed as a [ref.](/learn/manipulating-the-dom-with-refs)
7+
`useImperativeHandle` це хук, який дозволяє кастомізувати об’єкт, який повертається через [реф.](/learn/manipulating-the-dom-with-refs)
88

99
```js
1010
useImperativeHandle(ref, createHandle, dependencies?)
@@ -20,25 +20,25 @@ useImperativeHandle(ref, createHandle, dependencies?)
2020
2121
### `useImperativeHandle(ref, createHandle, dependencies?)` {/*useimperativehandle*/}
2222
23-
Call `useImperativeHandle` at the top level of your component to customize the ref handle it exposes:
23+
Викличте `useImperativeHandle` на верхньому рівні вашого компонента, щоб кастомізувати об'єкт посилання, який повертає реф:
2424
2525
```js
2626
import { useImperativeHandle } from 'react';
2727

2828
function MyInput({ ref }) {
2929
useImperativeHandle(ref, () => {
3030
return {
31-
// ... your methods ...
31+
// ... ваші методи ...
3232
};
3333
}, []);
3434
// ...
3535
```
3636
37-
[See more examples below.](#usage)
37+
[Перегляньте більше прикладів нижче.](#usage)
3838
39-
#### Parameters {/*parameters*/}
39+
#### Параметри {/*parameters*/}
4040
41-
* `ref`: The `ref` you received as a prop to the `MyInput` component.
41+
* `ref`: `Реф`, який ви отримали як проп у компоненті `MyInput`.
4242
4343
* `createHandle`: A function that takes no arguments and returns the ref handle you want to expose. That ref handle can have any type. Usually, you will return an object with the methods you want to expose.
4444

0 commit comments

Comments
 (0)