mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-07-31 12:30:11 +02:00
Add return types to Slate React components
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Editable component
|
||||
|
||||
#### `Editable(props: EditableProps)`
|
||||
## `Editable(props: EditableProps): JSX.Element`
|
||||
|
||||
The `Editable` component is the main editing component. Note that it must be inside a `Slate` component.
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# Slate Component
|
||||
|
||||
## `Slate(props: SlateProps)`
|
||||
## `Slate(props: SlateProps): JSX.Element`
|
||||
|
||||
The `Slate` component must include somewhere in its `children` the `Editable` component.
|
||||
|
||||
|
Reference in New Issue
Block a user