Menu

Why TSRX Gives Me PHP Flashbacks
📰
0

Why TSRX Gives Me PHP Flashbacks

DEV Community·Alex Saft·about 1 month ago
#2xAoUryP
#webdev#solidjs#react#typescript#solid#tsrx
Reading 0:00
15s threshold

For the past few days, the frontend community has been buzzing about a potential successor to JSX: TSRX . It was created by Dominic Gannaway( @trueadm ) the creator of Inferno & Ripple, and former React and Svelte core team member. It is available today as an Alpha for React, SolidJS, and Ripple. And Ryan Carniato has already written a detailed piece on it. I decided to take a look at it myself, and honestly, my feelings are mixed. On one hand, the problem it tries to solve is painfully familiar. In complex components, JSX can quickly devolve into a spaghetti of {condition && ...}, .map(...), nested callbacks, and a sea of brackets rendering themselves. At first glance, TSRX feels like a breath of fresh air. Using regular-looking if and for statements right inside the component structure looks much cleaner: a condition looks like a condition, a loop is just a loop, and a block is a block.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More