Skip to content

Commit

Permalink
emmm
Browse files Browse the repository at this point in the history
  • Loading branch information
yisar committed Oct 18, 2023
1 parent e674033 commit ccc1d90
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,13 @@ const isComponent = (c) => c?.vtype === VTYPE_FUNCTION

function h(type, props, ...children) {
props = props || {}

if (children.length) {
props.children = children.length === 1 ? children[0] : children
}

const vtype =
typeof type === "string"
? VTYPE_ELEMENT
: VTYPE_FUNCTION

return {
vtype,
type,
Expand Down

0 comments on commit ccc1d90

Please sign in to comment.