You donât actually need âmodernâ web frameworks as much in haxe, because haxe compiles to a single file, so no webpack is needed, and you donât really need vdom as you can retain references to div locations or create them on the fly and structure use with your own choice of design pattern and classes. You can use classes more like traditional mainstream language like you might in c# or java.
It can be interesting using haxe with traditional web tech for say a quick android touchscreen using electron.
And using haxe nodejs can be easy for instance I used it for creating a private local application to help manage shopify.
Have some nodejs file helpers that I have used with electron.
And some helpers for messing with html
but tink and soon haxe will have async âsysâ stuff that can be used with nodejs.
Itâs quite easy to use Flexbox and even just use some static inline module functions.
package someFlexStyles;
import js.html.CSSStyleDeclaration;
function style1( style: CSSStyleDeclaration ){
style.display = 'flex';
style.flexDirection = 'row';
style.backgroundColor = 'transparent';
style.position = 'absolute';
style.width = '100vw';
style.height = '100vh';
style.margin = '0';
style.padding = '0';
style.alignItems = 'center';
}
And bulid up complex flexbox structures even with clipped videos. Really with haxe itâs possible to build from scratch and make robust product rather than being tied to latest fad framework.
WebGL is very viable to create from scratch, you donât have to use mainstream but can role your own.
For instance I made this port of smiley WebGL demo
https://nanjizal.github.io/webgl-example/indexHaxe.html
and improved the structures with haxe typedness.
And my hyperKitGL library is quite nice for fiddling about with your own WebGL structures especially 2D.
Obviously you can use more extensive libraries with WebGL like Kha or ThreeJS or any haxe game toolkit.
The reality is that if your trying to copy and paste code and hook into premade npm modules Haxe is likely to be much more hardwork for a traditional js dev, but if your prepared to get your hands dirty itâs quite feasible to do it all from scratch something that is less feasible in javascript.
I am fully aware some of my libraries above may not be as web professional as some libraries you may find, but the point was more you can just pick up haxe and make it do what you need and really the boundary between haxe js, haxe c++, haxe nodejs, etc⊠can easily start to blur, yet you can hook up with traditional html dom just as easily, there is no reason you canât make the next killer website or tool/library for the web, and you donât have to use react but you can.