1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 15:02:51 +02:00

Fix typo in docs (#3166)

This commit is contained in:
Marton Langa
2019-11-29 18:41:52 +01:00
committed by Ian Storm Taylor
parent 5e5f1d9046
commit f7a72a1977

View File

@@ -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>