1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 13:41:19 +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:
tepythai
2019-11-29 00:31:54 +09:00
committed by Ian Storm Taylor
parent f8c8ae8596
commit 15a8e0ee72

View File

@@ -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`