Content
@
0 reply
0 recast
0 reaction
Darryl Yeo đ ïž (at Devcon)
@darrylyeo
I absolutely adore Svelte for this. `? :` and `.map()` / `key={}` / `<></>` (or `<Fragment>`) take so much brainpower, both to write and to interpret. `{#if}` / `{:else}` and `{#each}` leave absolutely no room for confusion. https://learn.svelte.dev/tutorial/else-if-blocks
8 replies
0 recast
20 reactions
Rafi
@rafi
Plus, there is no JSX. I feel like 40% of my time spent writing JSX is fixing mismatched parens
1 reply
0 recast
3 reactions
Darryl Yeo đ ïž (at Devcon)
@darrylyeo
99% of my time debugging an inherited React codebase is reformatting the conditionals to look like this just so I can tell whatâs happening đ« ```jsx return ( condition ? ( <> <div></div> <div></div> </> ) : ( <div></div> ) ) ```
0 reply
0 recast
1 reaction