Skip to content
Myr

Translate useId note to Russian

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent 6f08c6f · Browse files · 2 files+10 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−3 removed

  • other:+10 added−3 removed

2 files+10 added−3 removed

modified:README.md+6 added-1 removed
355 unmodified lines
356 </li>357)358```359360In case you just need random IDs to link elements like labels and input fields together, [useId](https://reactjs.org/docs/hooks-reference.html#useid) is recommended. That hook was added in React 18.360In case you just need random IDs to link elements like labels361and input fields together, [`useId`] is recommended.362That hook was added in React 18.363364[`useId`]: https://reactjs.org/docs/hooks-reference.html#useid365366367### React Native368369React Native does not have built-in random generator. The following polyfill370works for plain React Native and Expo starting with `39.x`.
136 unmodified lines
modified:README.ru.md+4 added-2 removed
341 unmodified lines
342 )343}344```345346Подробнее об использовании свойства `key` читайте в347[официальной документации React](https://ru.reactjs.org/docs/lists-and-keys.html#keys).346Для связи `<input>` и `<label>` лучше использовать [`useId`],347который был добавлен в React 18.348349[`useId`]: https://reactjs.org/docs/hooks-reference.html#useid350351352### React Native353354React Native не имеет встроенного аппаратного генератора случайных чисел.355Полифил ниже работает в чистом React Native и в Expo начиная с версии 39.
134 unmodified lines