4 ms·
This is nice. Thanks for sharing. When I heard "react" I immediately thought SPA and Event handling in the browser. This is more close to ASP .NET ( organizin
by senthil_rajasek 2y ago
This is nice. Thanks for sharing.
When I heard "react" I immediately thought SPA and Event handling in the browser.
This is more close to ASP .NET ( organizing views on the server side).
This is very useful but this is not for handling events on the client.
Thanks again for sharing.
- rkwz 2y agoYes, it's more about organizing your UI code/templates similar to a React codebase than running Go code in browser. I think apart from vDOM, a big contribution from React is how we organize code.
- fourside 2y agoYou are using “React-like” to mean something people don’t usually attribute to React, hence why there’s so much confusion in the comments. React did not invent component-driven code organization. I would say React is better known for reactive, declarative UI code (the reason for its name) and JSX.
- michaelcampbell 2y agoYeah this is more like go-template-jsx than "react"
- fourside 2y agoIt’s not even JSX-like templates in Go because one of the biggest advantages of JSX is that for any logic you just use JavaScript instead of having to learn a template language. It’s extending HTML in JS rather than extending HTML to allow for scripting. I agree with the parent comment that this is more like the Go version of ASP.NET templates.