Change document title
Update document.title in a useEffect when state changes, and restore the default title on cleanup:
React in HTML
An example of using React 18 as a client-side UI library, loaded via CDN script tags in plain HTML without a build step:
Set the key prop with crypto
When an API returns list items without stable IDs, map over the response once and add id