1
0
Fork 0

chore: Linting for markdown and js

This commit is contained in:
joostdecock 2021-10-17 17:34:55 +02:00
parent eca8199ed8
commit 1c92e0f655
6677 changed files with 24391 additions and 25987 deletions

View file

@ -1,8 +1,8 @@
---
title: Pattern.getRenderProps()
---
***
A pattern's `getRenderProps()` method will return a set of properties
## title: Pattern.getRenderProps()
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,7 +29,6 @@ See [the Draft React component](/reference/packages/components/draft/) for more
</Tip>
## Pattern.getRenderProps() example
```jsx
@ -44,5 +43,4 @@ const MyReactComponent = ({ measurements }) => {
}
export default MyReactComponent
```
```