import React from 'react' import Head from 'next/head' export default function HeadPage() { const [shouldReverseScriptOrder, reverseScriptOrder] = React.useReducer( (b) => !b, false ) const [shouldInsertScript, toggleScript] = React.useReducer((b) => !b, false) const scriptAsyncTrue = const scriptAsyncFalse = ( ) return (
{/* this will not render */} {/* this will get rendered */} {/* this will not render */} {/* this will override the default */} {/* this will not render the content prop */} {/* allow duplicates for specific tags */} {/* both meta tags will be rendered since they use unique keys */} Fragment title {/* the following 2 link tags will both be rendered */} {/* only one tag will be rendered as they have the same key */} {shouldInsertScript ? scriptAsyncTrue : null} {/* this should not execute twice on the client */} {shouldReverseScriptOrder ? scriptAsyncTrue : scriptAsyncFalse} {/* this should have async set to false on the client */} {shouldReverseScriptOrder ? scriptAsyncFalse : scriptAsyncTrue} {/* this should not execute twice on the client (intentionally sets defer to `yas` to test boolean coercion) */} {/* such style can be used for alternate links on _app vs individual pages */} {['pl', 'en'].map((language) => ( ))} {['pl', 'en'].map((language) => ( ))}

I can have meta tags

) }