Skip to content

Commit

Permalink
Wrap preact.Fragment with preact.createElement (#35418)
Browse files Browse the repository at this point in the history
* Wrap preact.Fragment

* Return props.children insted of double nest
  • Loading branch information
caroqliu committed Jul 29, 2021
1 parent a9b6596 commit 7c1920a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preact/index.js
Expand Up @@ -64,7 +64,7 @@ export function hydrate(vnode, container) {
* @return {PreactDef.Renderable}
*/
export function Fragment(props) {
return preact.Fragment(props);
return props.children;
}

/**
Expand Down

0 comments on commit 7c1920a

Please sign in to comment.