Skip to content

Commit

Permalink
Feat : createVNode 함수 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
haaneul11 committed Dec 26, 2024
1 parent cc286d7 commit 7e96a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/createVNode.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function createVNode(type, props, ...children) {
return {};
return { type, props, children: children.flat() };
}

0 comments on commit 7e96a01

Please sign in to comment.