We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd47d5e commit 63676abCopy full SHA for 63676ab
React/my-react/customreact.js
@@ -83,7 +83,8 @@ function renderComponent() {
83
if (!currentComponent) return;
84
85
hookIndex = 0; // Reset hook index
86
- const element = currentComponent.fn(currentComponent);
+ const element = currentComponent.fn();
87
+ console.log("Element to render:", element);
88
const container = document.querySelector("#root");
89
customRender(element, container);
90
}
0 commit comments