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

    wide-greece-63479

    12/19/2020, 11:42 AM
    Oooh..! πŸ™‚
  • w

    wide-greece-63479

    12/19/2020, 11:42 AM
    With js-classic only, as far as I can tell, yes...
  • u

    user

    12/19/2020, 11:59 AM
    I get errors about
    $hx_exports
    being null when I do
    -D js-es=6
    and
    -D js-classic
    , am I missing something?
  • u

    user

    12/19/2020, 12:01 PM
    Feels so weird to enable this (only) for
    if not ctx.js_modern
    πŸ˜†
  • w

    wide-greece-63479

    12/29/2020, 6:19 PM
    Finally found out why the react-native bootstrap didn't work with Haxe-generated App.js: The reason was that the import statement in index.js had to be changed from
    import App from './App';
    to
    import {App} from './App';
  • u

    user

    12/29/2020, 7:30 PM
    You mean like Kevin said?
  • w

    wide-greece-63479

    12/29/2020, 8:23 PM
    Yep, but I didtn't get it then..! πŸ™‚ It boils down to that the Haxe export mechanism generates code that corresponds to
    export App...
    and not
    export default App...
    . Because of that, the index.js import statement has to be changed from
    import App from './App';
    to
    import {App} from './App';
  • c

    cool-psychiatrist-49311

    12/30/2020, 11:25 AM
    Ah my bad. I typed those on mobile so didn't explain into the very details
  • c

    cool-psychiatrist-49311

    12/30/2020, 11:26 AM
    (typing code snippets on mobile is PITA)
  • b

    brainy-machine-50829

    12/30/2020, 11:39 AM
    > (typing code snippets on mobile is PITA)
  • u

    user

    12/30/2020, 11:44 AM
    Without formatting it looks like a post from semmi :x
  • u

    user

    12/30/2020, 11:45 AM
    > (**typing** ~~code snippets~~ on mobile is PITA)
  • b

    brainy-machine-50829

    12/30/2020, 11:47 AM
    It didn't format it for you? πŸ‘€
  • c

    cool-psychiatrist-49311

    12/30/2020, 12:06 PM
    Typing normal sentences isn't too bad for me because I can swipe on the keyboard to construct words. But code is really hard because of the symbols and casings
  • w

    wide-greece-63479

    01/21/2021, 8:51 PM
    Someone using Auth0 with haxe-react?
  • t

    thousands-house-41767

    01/25/2021, 9:25 AM
    6+3
  • t

    thousands-house-41767

    01/25/2021, 9:26 AM
    (sorry, cat talk πŸ˜„ Leaving it cause I find it kind of funny πŸ˜„ )
  • w

    wide-greece-63479

    01/25/2021, 11:51 AM
    Hi guys! Posted my take on using hooks (useState, useRef, useEffect) in a haxe-react functional component here: https://community.haxe.org/t/haxe-react-functional-components-and-hooks/2867?u=cambiata. Have a look if you're interested! πŸ™‚
  • w

    wide-greece-63479

    01/25/2021, 1:16 PM
    Even more, check out Juraj's great comment and Hooks extern solution..! πŸ™‚
  • w

    wide-greece-63479

    03/19/2021, 12:32 PM
    Someone using Haxe/React and Next.js?
  • a

    ambitious-knife-25690

    03/19/2021, 1:05 PM
    I'm using haxe/react but not with next
  • w

    wide-greece-63479

    03/19/2021, 1:38 PM
    @User Same here, been using haxe/react for a while.
  • w

    wide-greece-63479

    03/19/2021, 1:39 PM
    Next.js seems to do quite a lot magic stuff behind the scenes... Not that easy to adapt to Haxe workflow, it seems...
  • a

    ambitious-knife-25690

    03/19/2021, 3:44 PM
    i've never heard of it but tbh i do think i'm using a bit of an outdated version of react/haxe πŸ˜†
  • a

    ambitious-knife-25690

    03/19/2021, 3:44 PM
    is it worth pursuing at all? or are you just curious
  • u

    user

    03/19/2021, 8:19 PM
    Uh maybe Philippe tried something with next.js a while ago
  • w

    wide-greece-63479

    03/21/2021, 8:34 AM
    The main reason for me is that I’m collaborating with a team that uses React, and also Next.js in the latest projekt.
  • w

    wide-greece-63479

    03/21/2021, 8:37 AM
    Apart from that, I’m interrested in figuring out how the js solutions work and how Haxe can be integrated into these.
  • w

    wide-greece-63479

    03/21/2021, 8:38 AM
    I’m using Benmerck’s genes haxelibrary right now for generating Es6 module styre code from Haxe to facilitate the integration.
  • a

    ambitious-knife-25690

    03/31/2021, 11:45 PM
    wait wait wait
1...575859...80Latest