Re:Show HN: Tiny and utterly useless ReactJS clone (exercise...
by perfunctory on Monday November 11, 2019 @05:47AM
(#21503699)
Always glad to see efforts to extract the essence of an idea (reactive declarative UI in this case) and put it in a small digestible package. And btw, why wouldn't you use something like this in production?
Re:Show HN: Tiny and utterly useless ReactJS clone (exercise...
by zserge on Monday November 11, 2019 @05:49AM
(#21503710)
It's terribly slow and inefficient. Although, if your layout is mostly static and new components are rarely added/removed (or if performance does not matter to you) - why not? But hey, I warned you :)
Re:Show HN: Tiny and utterly useless ReactJS clone (exercise...
by gatherhunterer on Tuesday November 12, 2019 @07:10PM
(#21519677)
There’s a pattern in the code that I don’t understand. I looks like all top-level variables are assigned with “const” whereas variable assignments in blocks use “let” even if they are not reassigned. What is the reason for that?
Re:Show HN: Tiny and utterly useless ReactJS clone (exercise...
by pkursawe on Monday November 11, 2019 @04:33PM
(#21509139)
Nice way of showing how things work under the hood.
Needless to say the live example does not work in IE (11). It takes ages trying to make sense of the `script` tag and then gives up.
I might compile a CommonJS file and throw it at IE just for fun.
Needless to say the live example does not work in IE (11). It takes ages trying to make sense of the `script` tag and then gives up. I might compile a CommonJS file and throw it at IE just for fun.