Skip to content

Commit ec4cae8

Browse files
committed
Tweak placement of code snippet
1 parent 87f4f31 commit ec4cae8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

TUTORIAL.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ Let's take a closer look at the `<Editor>` component we saw being used above.
219219
Despite its name, this _is not_ the actual core of the block editor. Rather it is a _wrapper_ component we've created to contain the components which form the main body of our custom editor.
220220

221221
### Dependencies
222-
The first thing we do is to pull in some dependencies. The most important of these are the internal components `BlockEditor` and `Sidebar`, which we will explore in greater detail shortly.
223-
224-
The remaining components are more static elements which form the layout and surrounding UI of the editor.
222+
The first thing we do inside `<Editor>` is to pull in some dependencies.
225223

226224
```jsx
227225
// src/editor.js
@@ -232,6 +230,10 @@ import Sidebar from 'components/sidebar';
232230
import BlockEditor from 'components/block-editor';
233231
```
234232

233+
The most important of these are the internal components `BlockEditor` and `Sidebar`, which we will explore in greater detail shortly.
234+
235+
The remaining components are largely static elements which form the layout and surrounding UI of the editor.
236+
235237
### Editor Render
236238
With these components available we can proceed to define our `<Editor>` component.
237239

0 commit comments

Comments
 (0)