Skip to content

@caoergou/windows-xp / registry / defineApp

Function: defineApp() ​

> defineApp<TProps>(config): AppRegistryEntry<TProps>

Defined in: src/registry/defineApp.tsx:105

Define a desktop application in one typed call.

Type Parameters ​

TProps ​

TProps extends SerializableProps = Record<string, never>

Parameters ​

config ​

DefineAppConfig<TProps>

Returns ​

AppRegistryEntry<TProps>

Example ​

tsx
const HelloApp = defineApp({
  id: 'Hello',
  name: 'Hello',
  component: () => <div>Hello from Windows XP!</div>,
});
// <WindowsXP apps={[HelloApp]} />