react-code-dataset / next.js /test /development /pages-dir /client-navigation /fixture /pages /head-duplicate-default-keys.js
Download next.js/test/development/pages-dir/client-navigation/fixture/pages/head-duplicate-default-keys.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/pages-dir/client-navigation/fixture/pages/head-duplicate-default-keys.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/pages-dir/client-navigation/fixture/pages/head-duplicate-default-keys.js
-
curl -L -o head-duplicate-default-keys.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/pages-dir/client-navigation/fixture/pages/head-duplicate-default-keys.js
583 Bytes
| import React from 'react' | |
| import Head from 'next/head' | |
| export default () => ( | |
| <div> | |
| <Head> | |
| {/* this will not render */} | |
| <meta charSet="utf-8" key="charSet" /> | |
| {/* this will not render */} | |
| <meta charSet="iso-8859-5" key="charSet" /> | |
| {/* this will render instead of the default */} | |
| <meta name="viewport" content="width=500" key="viewport" /> | |
| </Head> | |
| <Head> | |
| {/* this will override the above */} | |
| <meta charSet="iso-8859-1" key="charSet" /> | |
| </Head> | |
| <h1>Meta tags with same keys as default get deduped</h1> | |
| </div> | |
| ) | |