4 ms·
Because all of what you wrote can probably be implemented as <Window width={300} height={200} minimize={false}> and rendered on demand. Painfully construct
by troupo 3y ago
Because all of what you wrote can probably be implemented as
<Window width={300} height={200} minimize={false}>
and rendered on demand.
Painfully constructing UIs one line at a time is, well, painful. The whole DOM API is like that, and people have been trying to get away from it since at least jQuery.
- gumballindie 3y agoThe issue is when this kind of code builds up and no one other than people who consume copious amounts of various numbing drugs can maintain or read it. Not sustainable.
- troupo 3y agoThe code that needs a single imperative line for every single thing builds up into incomprehensible mess much quicker, and is quickly abstracted away into function calls not dissimilar to jQuery or even React.