La referencia de la API está disponible solo en inglés por ahora.

noFlashScript

function
theme/noFlashScript.ts:55

The inline script that sets the theme before the first paint.

On the server-safe entry because that is where it is used: inlined into a document head during a server render, long before any client component exists.
signature
noFlashScript(__namedParameters): string

The script that sets the theme before the first paint.

Parameters

NameTypeDescription
__namedParametersNoFlashScriptOptions

Returns

string

Example

example
// app/layout.tsx
<head>
  <script dangerouslySetInnerHTML={{ __html: noFlashScript() }} />
</head>