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

    user

    05/22/2021, 3:54 PM
    () -> myFunction(0)
    or
    myFunction.bind(0)
    No need for
    this.
    :P
  • n

    numerous-oil-90946

    05/23/2021, 7:17 AM
    Thanks a lot 🙂
  • n

    numerous-oil-90946

    05/23/2021, 10:11 AM
    Sorry another question 😅 is it possible to import css stylesheet right into the haxe file like we would in Javascript?
  • n

    numerous-oil-90946

    05/23/2021, 10:11 AM
    And have a nice sunday 😄
  • u

    user

    05/23/2021, 10:16 AM
    Are you using webpack?
  • u

    user

    05/23/2021, 10:17 AM
    If so, you can add something like this (on phone atm):
    @:keep static var styles = Webpack.require('./path/to/styles.css');
  • n

    numerous-oil-90946

    05/23/2021, 12:43 PM
    I am not using for now, but it may be an option ,thanks 🙂
  • b

    bumpy-river-98721

    06/12/2021, 8:02 AM
    what is react for?
  • a

    ambitious-knife-25690

    07/15/2021, 2:07 PM
    does the react native externs work with haxe 4+ 🤔
  • a

    ambitious-knife-25690

    07/15/2021, 2:07 PM
    It has been a while since i've messed with react native in haxe
  • a

    ambitious-knife-25690

    07/15/2021, 2:16 PM
    looking at the reactnative source it looks like it should be fine :3
  • a

    ambitious-knife-25690

    07/15/2021, 2:17 PM
    time to waste 90% of my storage space on android stuff...
  • u

    user

    07/15/2021, 4:06 PM
    Yeah should work with latest haxe, kevin uses it with tink which is always cutting edge
  • a

    ambitious-knife-25690

    07/15/2021, 5:10 PM
    coolsies!
  • a

    ambitious-knife-25690

    07/15/2021, 5:10 PM
    running latest react native as well
  • a

    ambitious-knife-25690

    07/15/2021, 5:10 PM
    works seamlessly :)
  • a

    ambitious-knife-25690

    07/15/2021, 6:48 PM
    A sample project should anyone want to try with the latest react-native. It's using the same sample code from the
    haxe-react
    org but just with a more personalised project workflow
  • a

    ambitious-knife-25690

    07/15/2021, 8:44 PM
    Not sure if this is needed, but, is there a solution for react/react native that allows exporting react components as individual files?
  • a

    ambitious-knife-25690

    07/15/2021, 8:44 PM
    I recall hot reloading slowing down over time, but I don't think it's that big of a deal
  • a

    ambitious-knife-25690

    07/15/2021, 8:44 PM
    just wondering for the most part if there's an easy solution
  • c

    cool-psychiatrist-49311

    07/16/2021, 2:06 AM
    you can try genes
  • c

    cool-psychiatrist-49311

    07/16/2021, 2:06 AM
    https://github.com/benmerckx/genes
  • a

    ambitious-knife-25690

    07/17/2021, 1:42 PM
    neat, debugging works great and traces route conveniently!
  • a

    ambitious-knife-25690

    07/17/2021, 1:44 PM
    altho, testing some more, breakpoints do seems to break after a bit 🤔
  • a

    ambitious-knife-25690

    07/17/2021, 1:50 PM
    modifying the file seems to be what makes sourcemaps stop working not sure how to fix that issue
  • b

    bitter-family-72722

    07/17/2021, 2:08 PM
    isn't that what they're supposed to do? 😄
  • a

    ambitious-knife-25690

    07/17/2021, 2:09 PM
    😆
  • a

    ambitious-knife-25690

    07/20/2021, 2:15 PM
    if anyone wants to get breakpoints working i found a solution
  • a

    ambitious-knife-25690

    07/20/2021, 2:16 PM
    comment out
    "sourcemaps": true
    in your
    launch.json
    (if you have it there)
  • a

    ambitious-knife-25690

    07/20/2021, 2:16 PM
    and instead add
    "inlineSourceMap": true
1...596061...80Latest