3 ms·
createElement is immediate. The component function call is not. It may never be called. Try const a = <App />; App() will never be called.
by recursive 2y ago
createElement is immediate. The component function call is not. It may never be called. Try const a = <App />;
App() will never be called.
- throwAGIway 2y agoYeah, 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 2y agoWhen 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.