1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-25 16:20:49 +02:00

Update defining-custom-block-nodes.md (#776)

This commit is contained in:
Brian Kabiro
2017-05-04 02:51:13 +03:00
committed by Ian Storm Taylor
parent 460498b5dd
commit cb98408115

View File

@@ -50,7 +50,7 @@ class App extends React.Component {
Now let's add "code blocks" to our editor.
The problem is, code blocks won't just be rendered as a plain paragraph, they'll need to be renderer differently. To make that happen, we need to define a "renderer" for `code` nodes
The problem is, code blocks won't just be rendered as a plain paragraph, they'll need to be rendered differently. To make that happen, we need to define a "renderer" for `code` nodes
Node renderers are just simple React components, like so: