UNPKG

@lexical/react

Version:

This package provides Lexical components and hooks for React applications.

11 lines (9 loc) • 546 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import{getExtensionDependencyFromEditor as t}from"@lexical/extension/getExtensionDependencyFromEditor";import{ReactExtension as e}from"@lexical/react/ReactExtension";import{jsx as n}from"react/jsx-runtime";function o({initialEditor:o,children:i}){const{Component:r}=t(o,e).output; return n(r,{children:i})}export{o as LexicalExtensionEditorComposer};