Skip to content

Commit 63676ab

Browse files
committed
fix changes
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent bd47d5e commit 63676ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

React/my-react/customreact.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ function renderComponent() {
8383
if (!currentComponent) return;
8484

8585
hookIndex = 0; // Reset hook index
86-
const element = currentComponent.fn(currentComponent);
86+
const element = currentComponent.fn();
87+
console.log("Element to render:", element);
8788
const container = document.querySelector("#root");
8889
customRender(element, container);
8990
}

0 commit comments

Comments
 (0)