1
0
Fork 0

Revert "chore: Linting for markdown and js"

This reverts commit 1c92e0f655.
This commit is contained in:
joostdecock 2021-10-17 18:26:00 +02:00
parent 994874fa72
commit cba1ab19c8
6627 changed files with 25791 additions and 24211 deletions

View file

@ -1,8 +1,8 @@
***
---
title: Pattern.getRenderProps()
---
## title: Pattern.getRenderProps()
A pattern's `getRenderProps()` method will return a set of properties
A pattern's `getRenderProps()` method will return a set of properties
that allow the pattern to be rendered be an external renderer such as
a React component. It should only be called after calling `Pattern.draft()`.
@ -10,7 +10,7 @@ a React component. It should only be called after calling `Pattern.draft()`.
```js
Object pattern.getRenderProps()
```
```
The object returned by this method contains the following properties:
@ -29,6 +29,7 @@ See [the Draft React component](/reference/packages/components/draft/) for more
</Tip>
## Pattern.getRenderProps() example
```jsx
@ -43,4 +44,5 @@ const MyReactComponent = ({ measurements }) => {
}
export default MyReactComponent
```
```