Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@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 pfp
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 đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@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