The Two Reacts

Post on RSC


The post

  • Apps always run in two devices, mine and others.
  • If it runs on mine, i would have client state
  • Users expect instant feedback (little delay) on interactiosn with buttons, sliders,etc. While they accep the delay on links
  • When building a UI at least some interactions should have zero latency and network roundtrips
  • On react, UI is a function of state, meaning the state determines the UI. When it changes, UI must be recomputed thus my computer would recompute it.
  • On the other hand, when we want to show information about a webpages metadata, the UI is not recomputed, instead, it is computed in the server and streamed to the client. -No more UI depending just on state but also on data.
  • It seems either we could have UI based on state or based on data, not both

Links