haxe-react icon indicating copy to clipboard operation
haxe-react copied to clipboard

very excited about this project

Open hyusetiawan opened this issue 4 years ago • 1 comments

I have always wanted to use haxe but the hurdles are a bit much to be productive in haxe while using react, especially the string based JSX, does this project plan to fix that? first class support of JSX maybe?

Also, the links to the roadmap here: https://lib.haxe.org/p/react-next/ are all broken

hyusetiawan avatar Sep 05 '21 01:09 hyusetiawan

Hello :)

Yeah, links don't always work directly within haxelib, but they should be fine on github. You can find react-next documentation here: https://github.com/kLabz/haxe-react/tree/next/doc

It's not first class support of JSX yet because you don't get much completion within JSX, but you can definitely avoid string-based JSX and even most jsx() calls with -D react_auto_jsx

override function render() {
  return <button onClick={() -> trace('hello world!')}>Hello</button>;
}

kLabz avatar Sep 05 '21 06:09 kLabz