Skip to content

Commit

Permalink
Provide better description of RawHTMLProps
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Apr 3, 2020
1 parent c6722b2 commit 8bed5cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/element/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ aside from `children` are passed.

_Parameters_

- _props_ `RawHTMLProps`:
- _props_ `RawHTMLProps`: Children should be a string of HTML. Other props will be passed through to div wrapper.

_Returns_

Expand Down
3 changes: 2 additions & 1 deletion packages/element/src/raw-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { createElement } from './react';
* To preserve additional props, a `div` wrapper _will_ be created if any props
* aside from `children` are passed.
*
* @param {RawHTMLProps} props
* @param {RawHTMLProps} props Children should be a string of HTML. Other props
* will be passed through to div wrapper.
*
* @return {JSX.Element} Dangerously-rendering component.
*/
Expand Down

0 comments on commit 8bed5cf

Please sign in to comment.