mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 23:12:52 +02:00
Fix typo in docs (#3166)
This commit is contained in:
committed by
Ian Storm Taylor
parent
5e5f1d9046
commit
f7a72a1977
@@ -44,7 +44,7 @@ const link = {
|
||||
}
|
||||
```
|
||||
|
||||
The `type` and `url` properties there are your own custom API. Slate sees that they exist, but it doesn't ever use them for anything. However, when it goes to render an link element you'll receive an object with the custom properties attached, so that you can render it as:
|
||||
The `type` and `url` properties there are your own custom API. Slate sees that they exist, but it doesn't ever use them for anything. However, when it goes to render a link element you'll receive an object with the custom properties attached, so that you can render it as:
|
||||
|
||||
```jsx
|
||||
<a href={element.url}>{element.children}</a>
|
||||
|
Reference in New Issue
Block a user