JSX
←Older revision | Revision as of 06:03, 9 February 2025 | ||
Line 4: | Line 4: | ||
[[React]] comes with enhanced version of [[JavaScript]] called [[JSX]] which mixes the code with [[DOM]] definition. Many love it. Some consider it crazy. Anyway it is certainly a challenge to convert such concept to another language like [[Java]] and to do it without enhancing the language - only with the help of [[AnnotationProcessor]]s. | [[React]] comes with enhanced version of [[JavaScript]] called [[JSX]] which mixes the code with [[DOM]] definition. Many love it. Some consider it crazy. Anyway it is certainly a challenge to convert such concept to another language like [[Java]] and to do it without enhancing the language - only with the help of [[AnnotationProcessor]]s. | ||
+ | |||
+ | === Java? Java! === | ||
Can that be done? Yes, it can. See my [http://react4jdemo.apidesign.org/ react4jdemo tutorial] or go directly to the [https://github.com/jtulach/netbeans-html4j/blob/react4jdemo/README.md project page]. | Can that be done? Yes, it can. See my [http://react4jdemo.apidesign.org/ react4jdemo tutorial] or go directly to the [https://github.com/jtulach/netbeans-html4j/blob/react4jdemo/README.md project page]. |