Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

very excited about this project #47

Open
hyusetiawan opened this issue Sep 5, 2021 · 1 comment
Open

very excited about this project #47

hyusetiawan opened this issue Sep 5, 2021 · 1 comment

Comments

@hyusetiawan
Copy link

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
Copy link
Owner

kLabz commented Sep 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants