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

    ambitious-knife-25690

    01/16/2020, 3:51 PM
    @User It's not finite
  • a

    ambitious-knife-25690

    01/16/2020, 3:51 PM
    Technically the individual can choose as many conditions as they require
  • u

    user

    01/16/2020, 3:51 PM
    Then mutate state.displayedInputs
  • u

    user

    01/16/2020, 3:52 PM
    (well, with a new array instance)
  • u

    user

    01/16/2020, 3:53 PM
    It's really close to the classic react todolist demo app
  • a

    ambitious-knife-25690

    01/16/2020, 3:53 PM
    yeah it basically is the same concept
  • a

    ambitious-knife-25690

    01/16/2020, 3:53 PM
    add as many todo's as you want
  • u

    user

    01/16/2020, 3:53 PM
    And todolist demo apps do not store the nodes themselves
  • u

    user

    01/16/2020, 3:53 PM
    They store the data/metadata
  • a

    ambitious-knife-25690

    01/16/2020, 3:54 PM
    ah! that's actually a better way of doing it
  • a

    ambitious-knife-25690

    01/16/2020, 3:55 PM
    thanks for picking my brain!
  • u

    user

    01/16/2020, 3:56 PM
    Technically storing the result of a jsx() call works too, but it might be confusing: you are not storing instances (on which you can call public methods for example) but only a declaration of what kind of component tree you want react to render
  • a

    ambitious-knife-25690

    01/16/2020, 3:56 PM
    It would also be a lot easier to grab data rather than having to handle onChange or manually route through the dom to get the field values
  • a

    ambitious-knife-25690

    01/16/2020, 3:58 PM
    And this already follows my internal structure
  • a

    ambitious-knife-25690

    01/16/2020, 3:58 PM
    No idea what I was thinking :D
  • a

    ambitious-knife-25690

    01/16/2020, 5:29 PM
    defo a nicer way to handle this situation
  • b

    brainy-machine-50829

    01/16/2020, 5:50 PM
    You ended up using react-tools or something else?
  • b

    brainy-machine-50829

    01/16/2020, 5:51 PM
    I still didn't find time for my project, but I'm still on the split whether to do it pure coconut or react. 😄
  • a

    ambitious-knife-25690

    01/16/2020, 5:53 PM
    I'm using react-next + mui
  • a

    ambitious-knife-25690

    01/16/2020, 5:53 PM
    I'm super scared of coconut
  • a

    ambitious-knife-25690

    01/16/2020, 5:54 PM
    the macro error hell is something I don't want to partake in 😅
  • b

    brainy-machine-50829

    01/16/2020, 5:54 PM
    I like coconut, but there's nothing like MUI for it.
  • a

    ambitious-knife-25690

    01/16/2020, 5:55 PM
    There are some really nice QOL improvements coconut brings which really does make me want to use it
  • b

    brainy-machine-50829

    01/16/2020, 5:55 PM
    It's pretty sweet to use MUI with react, but not from Haxe, and I wanna do Haxe.
  • a

    ambitious-knife-25690

    01/16/2020, 5:55 PM
    but it kills the coding experience for me
  • b

    brainy-machine-50829

    01/16/2020, 5:55 PM
    So it's like... neither decision is nice. 😄
  • a

    ambitious-knife-25690

    01/16/2020, 5:55 PM
    I don't mind using MUI from haxe
  • b

    brainy-machine-50829

    01/16/2020, 5:56 PM
    Last time I've used it, I remember making a macro to generate empty extern classes for bunch of components.
  • b

    brainy-machine-50829

    01/16/2020, 5:56 PM
    As there was only rudimentary support for react and nothing for MUI in Haxe. 😄
  • a

    ambitious-knife-25690

    01/16/2020, 5:56 PM
    externs are already available :D
1...323334...80Latest