mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 21:21:21 +02:00
Fix typo in XX-migrating.md (#3136)
In ### Hooks section, I suppose it is "they use React's Context API" rather than "the use React's Content API". Please ignore this if it is not a typo. Thanks.
This commit is contained in:
committed by
Ian Storm Taylor
parent
f8c8ae8596
commit
15a8e0ee72
@@ -58,7 +58,7 @@ Previously the `<Editor>` component was doing double duty as a sort of "controll
|
||||
|
||||
### Hooks
|
||||
|
||||
In addition to the `useSlate` hook, there are a handful of other hooks. For example the `useSelected` and `useFocused` hooks help with knowing when to render selected states (often for void nodes). And since the use React's Content API they will automatically re-render when their state changes.
|
||||
In addition to the `useSlate` hook, there are a handful of other hooks. For example the `useSelected` and `useFocused` hooks help with knowing when to render selected states (often for void nodes). And since they use React's Context API they will automatically re-render when their state changes.
|
||||
|
||||
### `beforeinput`
|
||||
|
||||
|
Reference in New Issue
Block a user