Skip to content

Commit

Permalink
add documentation for new props
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed Aug 22, 2019
1 parent 86dfb5b commit aa339de
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/server-side-render/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,25 @@ E.g: `{ post_id: 12 }`.
- Type: `Object`
- Required: No

### EmptyResponsePlaceholder

This is a [render prop](https://reactjs.org/docs/render-props.html). When the api response is empty, the value of this prop is rendered. The render prop will receive the value of the api response as well as all props passed into `ServerSideRenderer`.
- Type: `WPElement`
- Required: No

### ErrorResponsePlaceholder

This is a [render prop](https://reactjs.org/docs/render-props.html). When the api response is an error, the value of this prop is rendered. The render prop will receive the value of the api response as well as all props passed into `ServerSideRenderer`.
- Type: `WPElement`
- Required: No

### LoadingResponsePlaceholder

This is a [render prop](https://reactjs.org/docs/render-props.html). While the request is being processed (loading state), the value of this prop is rendered. The render prop will receive the value of the api response as well as all props passed into `ServerSideRenderer`.
- Type: `WPElement`
- Required: No


## Usage

Render core/archives preview.
Expand Down

0 comments on commit aa339de

Please sign in to comment.