1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-07-31 12:30:11 +02: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

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.