Skip to content
Myr

docs: remove notes about HTML id usage (#319)

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

authored by Andrew · committed by GitHub · parent f7ae443 · Browse files · 3 files+0 added−26 removed
This commit

State

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

Diff stats

3 files+0 added−26 removed

  • other:+0 added−26 removed

3 files+0 added−26 removed

modified:README.md-1 removed
47 unmodified lines
48 * [Custom Random Bytes Generator](#custom-random-bytes-generator)49* [Usage](#usage)50 * [IE](#ie)51 * [React](#react)52 * [HTML ID](#html-id)52 * [React Native](#react-native)53 * [Rollup](#rollup)54 * [PouchDB and CouchDB](#pouchdb-and-couchdb)55 * [Mongoose](#mongoose)
461 unmodified lines
modified:README.ru.md-13 removed
51 unmodified lines
52 - [Смена генератора случайных чисел](#смена-генератора-случайных-чисел)53- [Руководство](#руководство)54 - [IE](#ie)55 - [React](#react)56 - [HTML ID](#html-id)56 - [React Native](#react-native)57 - [Rollup](#rollup)58 - [PouchDB и CouchDB](#pouchdb-и-couchdb)59 - [Mongoose](#mongoose)
303 unmodified lines
363364Подробнее об использовании свойства `key` читайте в365[официальной документации React](https://ru.reactjs.org/docs/lists-and-keys.html#keys).366368369### HTML ID370371Если вы используете Nano ID для HTML-свойства `id`, то нужно в начало добавить372какую-то строку — HTML ID не может начинаться с цифры, но Nano ID иногда может373сгенерировать такие ID.374375```jsx376<input id={'id' + this.id} type="text" />377```378379367### React Native368369React Native не имеет встроенного аппаратного генератора случайных чисел.370Полифил ниже работает в чистом React Native и в Expo начиная с версии 39.
136 unmodified lines
modified:README.zh-CN.md-12 removed
47 unmodified lines
48 * [自定义随机字节生成器](#自定义随机字节生成器)49* [用法](#用法)50 * [IE](#ie)51 * [React](#react)52 * [HTML ID](#html-id)52 * [React Native](#react-native)53 * [Rollup](#rollup)54 * [PouchDB and CouchDB](#pouchdb-and-couchdb)55 * [Mongoose](#mongoose)
306 unmodified lines
362 </li>363)364```365367368### HTML ID369370如果你想使用 Nano ID 作为 `id` 属性,你必须设置一些字符串前缀371(HTML ID 以数字开头是无效的)372373```jsx374<input id={'id' + this.id} type="text"/>375```376377366### React Native367368React Native 没有内置的随机生成器。下面的 polyfill369适用于普通 React Native 和从 `39.x` 开始的 Expo。
134 unmodified lines