3 ms·
The problem with React is nobody actually learns how to code in React properly and formally. They just wing it by copying what else they see around them. But t
by unconed 3y ago
The problem with React is nobody actually learns how to code in React properly and formally. They just wing it by copying what else they see around them.
But the point of incremental code is that it completely changes how you think about data flow and changes. Which they never do.
TLDR: topologically sort your code by change frequency of the data.
- leetrout 3y agoThat reminds me of volatility based composition presented in Righting Software[0]. I'm curious if you have anything to reference for what you are considering "proper and formal" react? Not sure if you're pointing toward the flux architecture with redux or something else... [0] https://rightingsoftware.org/ https://rightingsoftware.org/
- yieldcrv 3y agohonestly, I just never found a need to do react an even more counterintuitive way, than the counterintuitive way that I'm fine with there were never performance problems just because we used a ton of useEffects there were never bounced users because hooks were not the most optimal we did static landing pages without dynamic data that passed all the pagerank stuff decently, and then people came into the app and were more patient to see their unique account data rinse and repeat