Skip to content

Commit

Permalink
added JSDoc for replaceNode parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBombach committed Apr 21, 2019
1 parent b9c6954 commit 238e0e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import options from './options';
* @param {import('./index').ComponentChild} vnode The virtual node to render
* @param {import('./internal').PreactElement} parentDom The DOM element to
* render into
* @param {import('./dom').PreactElement} [replaceNode] Attempt to re-use an
* existing DOM tree rooted at `replaceNode`
*/
export function render(vnode, parentDom, replaceNode) {
if (options.root) options.root(vnode, parentDom);
Expand Down

0 comments on commit 238e0e4

Please sign in to comment.