Home / File/ client-options.js — astro Source File

client-options.js — astro Source File

Architecture documentation for client-options.js, a javascript file in the astro codebase.

Entity Profile

Source Code

// Hydrate directly and write the passed options to the DOM
export default async (load, options) => {
	const hydrate = await load();

	const div = document.createElement('div');
	div.id = 'options';
	div.textContent = `Passed options are: ${JSON.stringify(options.value)}`;
	document.body.appendChild(div);
	await hydrate();
}

Frequently Asked Questions

What does client-options.js do?
client-options.js is a source file in the astro codebase, written in javascript.
Where is client-options.js in the architecture?
client-options.js is located at packages/astro/e2e/fixtures/custom-client-directives/client-options.js (directory: packages/astro/e2e/fixtures/custom-client-directives).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free