This is a pretty good stab at a larger class of problems imo. How to write great, self documenting libraries - and beyond that how to maintain the library once it gets a strong following.
I mostly agree that renaming render to reconcile (or perhaps buildTree or mkVnode...) would level up the clarity once a dev starts writing app code that needs to update itself conditionally and handle state.
Now how would you address useEffect and its dependency array?
This is a pretty good stab at a larger class of problems imo. How to write great, self documenting libraries - and beyond that how to maintain the library once it gets a strong following.
I mostly agree that renaming
rendertoreconcile(or perhapsbuildTreeormkVnode...) would level up the clarity once a dev starts writing app code that needs to update itself conditionally and handle state.Now how would you address
useEffectand its dependency array?I would rename it to
theAutoMagicalFunctionThatWasSupposedToReplaceAllTheLifecycleMethods_ButFailed()Ouch