|
|
|
|
|
by king_magic
3500 days ago
|
|
What problems do you think the React + JS ecosystem could solve in the iOS world that haven't already largely been solved by standard iOS development approaches? I'm legitimately asking here - I been developing for iOS for years (and more recently with React from time to time for the web), and I've never once felt that standard iOS conventions/patterns were lacking compared to the React/JS ecosystem, but I would like to understand your point of view. |
|
1) Deterministic View Renders 2) Deterministic State Reproduction
I think the following article gives a good overview of why this is a good idea:
https://medium.com/javascript-scene/10-tips-for-better-redux...
Quoting from the article:
"When your view render is isolated from network I/O and state updates, you can achieve a deterministic view render, meaning: given the same state, the view will always render the same output. It eliminates the possibility of problems such as race conditions from asynchronous stuff randomly wiping out bits of your view, or mutilating bits of your state as your view is in the process of rendering."
ComponentKit is another example of a native library inspired by react (also developed by FB):
http://componentkit.org/