Login
You're viewing the ruby.social public feed.
  • Jan 20, 2024, 8:22 PM

    @emacsen Nope.

    Here I differ a lot from react's origin.

    My use case is replacing what I used to do with HTML and CGI scripts. Forms and stuff.

    So maybe react is the wrong tool... but it's the tool I know. 🙂

    💬 1🔄 0⭐ 0

Replies

  • Jan 20, 2024, 8:24 PM

    @steinarb

    The reason I've been writing about html is that I spent a lot of time learning React, and so much of the web is motivated by Javascript- including the rise of Node, which is at least partially motivated because people didn't want to switch between languages.

    The problem though is that you end up with two sets of state- that on the server and that on the client. If you have a lot going on on the server, or you are focused on offline first, that's great, but that's not...

    1/

    💬 2🔄 0⭐ 0
  • Jan 20, 2024, 8:26 PM

    @steinarb

    But that's not what most people use it for. They're using a lot of "framework" for what is really just serving HTML with a little interactivity.

    I was convinced too that only serving Javascript was somehow going to improve security, but in reality the server needs to serve what the client needs, which means that endpoints are either JSON versions of client endpoint, or the client does a lot of work.

    2/

    💬 1🔄 0⭐ 0