4 ms·
I 100% know it's a preference/style kind of thing, and I know the React/Node isn't perfect and comes with it's downfalls, but I whenever I have to code in anyth
by Trufa 2y ago
I 100% know it's a preference/style kind of thing, and I know the React/Node isn't perfect and comes with it's downfalls, but I whenever I have to code in anything other, I just miss the visual/mental model aspect of having your tsx code basically identical to your actual html.
The mental load of going from this to
func main() {
component := Page{
Children: []Component{
Div{
Children: []Component{
Button{Name: "Test button"},
},
},
},
}
to this
<Page>
<div>
<Button> Test button</Button>
</div>
</Page>`
or going from this:
const main = () => (
<Page>
<div>
<Button> Test button</Button>
</div>
</Page>
)
To, well... case in point, exactly the same thing is just so nice.
- 38 2y agofair enough, but you're also downplaying/omitting the huge dependency cost of React, both server side and client side. so pick your poison. you're basically saying "I want server side code without having to actually code anything". of course nothing is going to beat react, its an impossible ask
- srhtftw 2y agoReminds me of https://github.com/8byt/gox https://github.com/8byt/gox which I bookmarked when working with Go but never got around to using.