Revert "chore: Linting for markdown and js"
This reverts commit 1c92e0f655
.
This commit is contained in:
parent
994874fa72
commit
cba1ab19c8
6627 changed files with 25791 additions and 24211 deletions
|
@ -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
|
||||
```
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue