Skip to content

Commit 9b47e0f

Browse files
committed
Handle function components
1 parent 815af4c commit 9b47e0f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

didact.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ function performUnitOfWork(fiber) {
180180
}
181181

182182
function updateFunctionComponent(fiber) {
183-
// TODO
183+
const children = [fiber.type(fiber.props)]
184+
reconcileChildren(fiber, children)
184185
}
185186

186187
function updateHostComponent(fiber) {

0 commit comments

Comments
 (0)