Skip to content

Commit

Permalink
Rename Component to WPComponent in docstring (#18226)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz authored and gziolo committed Nov 1, 2019
1 parent 83e7216 commit 281d924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/visually-hidden/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*
* See VisuallyHidden hidden for example.
*
* @param {string|Component} as A tag or component to render.
* @return {Component} The rendered component.
* @param {string|WPComponent} as A tag or component to render.
* @return {WPComponent} The rendered component.
*/
function renderAsRenderProps( { as: Component = 'div', ...props } ) {
if ( typeof props.children === 'function' ) {
Expand Down

0 comments on commit 281d924

Please sign in to comment.