https://linen.dev logo
Join Discord
Powered by
# react
  • u

    user

    12/22/2021, 5:38 PM
    Is that possible??
  • r

    refined-laptop-39041

    12/22/2021, 5:42 PM
    It compiles to Javascript?
  • g

    gray-state-67732

    12/22/2021, 5:48 PM
    Ofc it's possible :P have been using it at work almost daily for 5 years
  • r

    refined-laptop-39041

    12/22/2021, 5:56 PM
    Is there anything public which uses it?
  • g

    gray-state-67732

    12/22/2021, 7:10 PM
    Nope
  • a

    ambitious-knife-25690

    12/23/2021, 12:38 AM
    https://coffeecalc.cc/
  • a

    ambitious-knife-25690

    12/23/2021, 12:38 AM
    this is a small project i made for another thing
  • a

    ambitious-knife-25690

    12/23/2021, 12:38 AM
    This uses haxe + react
  • n

    nutritious-father-64388

    12/28/2021, 10:19 PM
    hmm
  • n

    nutritious-father-64388

    12/28/2021, 10:19 PM
    maybe I should give React a go from Haxe side
  • n

    nutritious-father-64388

    12/28/2021, 10:20 PM
    I always had the impression that the tooling just wasn't there for comfortably editing JSX from Haxe side
  • n

    nutritious-father-64388

    12/28/2021, 10:20 PM
    but I don't gave it a proper try back then so I might be just wrong
  • g

    gray-state-67732

    12/28/2021, 10:25 PM
    Maybe try react-next if you felt that way with haxe-react back then?
  • n

    nutritious-father-64388

    12/28/2021, 11:03 PM
    might just give it a go!
  • g

    gray-state-67732

    12/28/2021, 11:16 PM
    🙂 don't hesitate to ask questions, and check out the few react-next specific docs there https://github.com/kLabz/haxe-react/tree/next/doc
  • n

    nutritious-father-64388

    12/28/2021, 11:37 PM
    cool, I'll probably give it a go soon!
  • n

    nutritious-father-64388

    12/28/2021, 11:38 PM
    you use it professionally, right? do you stay mostly on haxe land or do you interop with other JS libraries often? I was wondering how stuff like material-ui would work with it. I assume we could use that tool that generates haxe definitions from TS files?
  • g

    gray-state-67732

    12/29/2021, 12:00 AM
    Yep, have been using it daily at work for several years
  • g

    gray-state-67732

    12/29/2021, 12:01 AM
    I interop with a few js libraries, for which I handcraft externs. Auto generated externs from TS are too low quality imo (partly because of the ts files themselves..)
  • g

    gray-state-67732

    12/29/2021, 12:01 AM
    Material ui is one of the libs for which I handcrafted externs x)
  • g

    gray-state-67732

    12/29/2021, 12:02 AM
    https://github.com/kLabz/haxe-material-ui
  • n

    nutritious-father-64388

    12/29/2021, 12:38 AM
    niiice
  • t

    thankful-crowd-26654

    12/29/2021, 4:54 AM
    @User how exactly are you using Haxe here. Does your entire company use Haxe to generate react?
  • g

    gray-state-67732

    12/29/2021, 7:26 AM
    Yeah we do all web dev in Haxe
  • a

    ambitious-knife-25690

    01/21/2022, 3:41 PM
    is there a template project for react-next?
  • a

    ambitious-knife-25690

    01/21/2022, 3:42 PM
    I keep modding down old projects and it's a bit convoluted, if not, i'll make one and upload
  • a

    ambitious-knife-25690

    01/21/2022, 3:42 PM
    just wanna make sure i'm not reinventing something
  • g

    gray-state-67732

    01/21/2022, 4:30 PM
    Copy code
    haxe
    import js.Browser;
    import react.ReactDOM;
    import react.ReactMacro.jsx;
    
    var root = Browser.document.querySelector("#app");
    ReactDOM.render(jsx(<MyApplication />), root);
    There you go ~
  • a

    ambitious-knife-25690

    01/21/2022, 4:31 PM
    https://github.com/Jarrio/react-template
  • a

    ambitious-knife-25690

    01/21/2022, 4:31 PM
    I was thinking something more like this x)
1...646566...80Latest