For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/react.mainthreadobjecttypedefinition.create.md.
这是开发预览网站。请访问正式文档 lynx-stack.dev

Home > @lynx-js/react > MainThreadObjectTypeDefinition > create

MainThreadObjectTypeDefinition.create property

Create the realized main-thread object.

This must be a capture-free Main Thread Function. Imports used by the function must come from shared-runtime modules.

Signature:

readonly create: (initialValue: I) => O;