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

    brainy-machine-50829

    01/16/2020, 6:13 PM
    Hmm.
  • b

    brainy-machine-50829

    01/16/2020, 6:13 PM
    Oh well. Hopefully my main plans will work and I won't need to do that one. 😄
  • a

    ambitious-knife-25690

    01/16/2020, 6:13 PM
    it just bottlenecks you a bit cause if you want a desktop implementation you either need to go build a separate web interface
  • a

    ambitious-knife-25690

    01/16/2020, 6:13 PM
    or find some universal react-native framework that unifies an API
  • a

    ambitious-knife-25690

    01/16/2020, 6:14 PM
    but tbf I last messed with mobile reactjs at least 2/3 years ago and like you said things have come quite far
  • a

    ambitious-knife-25690

    01/16/2020, 6:14 PM
    I will still default to rn though just because of that experience 😂
  • b

    brainy-machine-50829

    01/16/2020, 6:15 PM
    Yeah, responsivity is #1 for me.
  • b

    brainy-machine-50829

    01/16/2020, 6:15 PM
    Hate modern apps. Even shitty skype got slow.
  • a

    ambitious-knife-25690

    01/16/2020, 6:16 PM
    skype has always been slow 😂
  • b

    brainy-machine-50829

    01/16/2020, 6:16 PM
    Yeah. I remember once I had to search something in history. Couldn't find it.
  • b

    brainy-machine-50829

    01/16/2020, 6:16 PM
    Got angry, opened up the DB in some viewer, threw in SQL, got the result I needed in like 2ms.
  • b

    brainy-machine-50829

    01/16/2020, 6:16 PM
    So like... wtf skype.
  • a

    ambitious-knife-25690

    01/16/2020, 6:34 PM
    lmao
  • b

    bitter-family-72722

    01/16/2020, 6:47 PM
    I've ditched skype a while ago \o/
  • b

    brainy-machine-50829

    01/16/2020, 8:18 PM
    Thinking about it, the 2 people I use it with also use discord, so that could work.
  • a

    ambitious-knife-25690

    01/16/2020, 11:39 PM
    Is there a modern way to give me some syntax highlighting for jsx?
  • u

    user

    01/17/2020, 1:45 PM
    With vscode yeah
  • u

    user

    01/17/2020, 1:46 PM
    https://github.com/jeremyfa/haxe-xmlgrammar should work if you're using strings and not inline xml
  • a

    ambitious-knife-25690

    01/17/2020, 3:56 PM
    thanks
  • a

    ambitious-knife-25690

    01/17/2020, 3:56 PM
    I like it :D
  • u

    user

    01/17/2020, 4:13 PM
    :P
  • u

    user

    01/17/2020, 4:14 PM
    I wish I could use something like this in vim, but it's using a different syntax definition format :(
  • u

    user

    01/17/2020, 4:16 PM
    In other news, with react-next you can now use
    ReactComponent
    (props and state as Dynamic, not encouraged),
    ReactComponent<TProps>
    ,
    ReactComponent<TProps, TState>
    or
    ReactComponentOfState<TState>
    (couldn't find a nicer way for this one, if anyone has an idea..) (previous ReactComponentOfX variants are still available)
  • a

    ambitious-knife-25690

    01/17/2020, 4:28 PM
    I remember all those years ago when I started with just
    ReactComponent
  • a

    ambitious-knife-25690

    01/17/2020, 4:28 PM
    Hell no to that hell again 😂
  • u

    user

    01/17/2020, 4:30 PM
    Yeah, I added a define (
    -D react_disable_dynamic_components
    ) so that
    ReactComponent
    means
    ReactComponentOf<Empty, Empty>
  • a

    ambitious-knife-25690

    01/17/2020, 4:31 PM
    Would it not be "slightly" better to make it
    {}
    over Dynamic?
  • u

    user

    01/17/2020, 4:31 PM
    I don't think it would work =/
  • u

    user

    01/17/2020, 4:37 PM
    Seems to work on my current project but everything is typed there..
  • u

    user

    01/17/2020, 4:38 PM
    It would break projects where
    ReactComponent
    is used though, that's enough to make me avoid that change x)
1...353637...80Latest