1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-31 12:38:18 +01:00

Update 08-rendering.md (#3520)

This commit is contained in:
琚致远 2020-02-28 06:49:29 +08:00 committed by GitHub
parent d17a1e86e3
commit 2d901f6520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,4 +133,4 @@ const Toolbar = () => {
}
```
Because the `<Toolbar>` uses the `useSlate` hook to retrieve the context, it will will re-render whenever the editor changes, so that the active state of the buttons stays in sync.
Because the `<Toolbar>` uses the `useSlate` hook to retrieve the context, it will re-render whenever the editor changes, so that the active state of the buttons stays in sync.