Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
recursive
· 2y ago · 0 comments
createElement is immediate. The component function call is not. It may never be called. Try const a = <App />;
App() will
never
be called.
Comments
[–]
throwAGIway
2y ago
Yeah, it will be called when you call render as in my original comment. Again, I don't think that passing a callback makes a framework.
[–]
recursive
OP
2y ago
When you combine that with the fact that you can't invoke the function directly, this seems like the textbook definition to me. Agree to disagree I guess.