Skip to content
Myr

Add small section on using built in useId-hook in newer React versions (#376)

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

* Add small section on using built in useId-hook in newer React versions * Removed newline

authored by maurer2 · committed by GitHub · parent f480b48 · Browse files · 1 file+1 added−0 removed
This commit

State

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

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:README.md+1 added
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.361362### React Native363364React Native does not have built-in random generator. The following polyfill
137 unmodified lines