kLabz / haxe-react

Haxe-React #next: preparing for 2.0.0
https://github.com/kLabz/haxe-react/blob/next/doc/react-next.md
22 stars 5 forks source link

very excited about this project #47

Open hyusetiawan opened 3 years ago

hyusetiawan commented 3 years ago

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

kLabz commented 3 years ago

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>;
}