5 ms·
No, I mean to reimplement the "framework". 1. Change the "div" "span" etc. to be just "createElement('div'..." 2. At the "render" function, do "reactDOM.rend
by boris_m 3y ago
No, I mean to reimplement the "framework".
1. Change the "div" "span" etc. to be just "createElement('div'..."
2. At the "render" function, do "reactDOM.render" instead of "replaceChildren"
- tobr 3y agoI think I misunderstood what you’re trying to do, in that case. This is a pattern for how to handle state updates, rather than a framework that happens to not have any code.
- boris_m 3y agoIt was mainly a demonstration of a pattern, yes, implementation was a secondary consideration. But there are ways to make this approach work as well.