1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-15 11:44:05 +02:00

fix: ts error (#3179)

This JSX tag's 'children' prop expects a single child of type 'Element', but multiple children were provided.
This commit is contained in:
Ziad Beyens
2019-12-01 16:44:26 +01:00
committed by Ian Storm Taylor
parent 012d5d5086
commit b4c15e13c1

View File

@@ -28,7 +28,7 @@ export const SlateContext = createContext<[Editor] | null>(null)
export const Slate = (props: {
editor: Editor
children: JSX.Element
children: JSX.Element | JSX.Element[]
defaultValue?: Node[]
onChange?: (children: Node[], operations: Operation[]) => void
}) => {