Re:React: You Might Not Need an Effect
by zarzavat on Thursday March 23, 2023 @05:59AM
(#35272339)
The funny thing is that React already kind of has its own programming language: JSX. If they wanted to, they could add language features to support React. I expect that would be very controversial though.
[ Parent
| on HN ]
Re:React: You Might Not Need an Effect
by yencabulator on Friday March 24, 2023 @06:59PM
(#35296815)
Svelte is pretty pleasant, compared to React. It's fundamentally a JS-to-JS compiler that adds reactive assignments, and ridiculously much more usable than useEffectHopeThisWasTheRightThing.
let count = 1;
// this is reactive
$: doubled = count * 2;
function handleClick() {
count += 1;
}