Skip to content

Commit edd667e

Browse files
committed
Fix incorrect doctag for render() (context argument comes before options)
1 parent f73b484 commit edd667e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ let falsey = v => v==null || v===false;
4444
* @name render
4545
* @function
4646
* @param {VNode} vnode JSX VNode to render.
47+
* @param {Object} [context={}] Optionally pass an initial context object through the render path.
4748
* @param {Object} [options={}] Rendering options
4849
* @param {Boolean} [options.shallow=false] If `true`, renders nested Components as HTML elements (`<Foo a="b" />`).
4950
* @param {Boolean} [options.xml=false] If `true`, uses self-closing tags for elements without children.
50-
* @param {Object} [context={}] Optionally pass an initial context object through the render path.
5151
*/
5252
renderToString.render = renderToString;
5353

0 commit comments

Comments
 (0)