Re:Things I wish I knew about state management when I starte...
by adamzapasnik on Monday February 10, 2020 @02:26PM
(#22292314)
While I'm not an old dog myself, rather a puppy. I share your sentiment. SPAs or over-jsed pages are problematic for many reasons.
At the moment this is my list when coding frontend on my own projects:
1. The less js the better.
2. If you can solve a problem in a few lines of native js, go for it!
3. Some complex "component"? Use React, it will save you a headache.
Why like this?
1. A lot can be done without js. Solutions are many times simpler and easier to modify.
2. A lot of components, like models and so on can be done in a few lines of javascript.
3. I think React isn't bad per se, many times it's a cleaner solution over native js when it comes to complex components, which can be required by designers, shrug.
At the moment this is my list when coding frontend on my own projects:
1. The less js the better. 2. If you can solve a problem in a few lines of native js, go for it! 3. Some complex "component"? Use React, it will save you a headache.
Why like this? 1. A lot can be done without js. Solutions are many times simpler and easier to modify. 2. A lot of components, like models and so on can be done in a few lines of javascript. 3. I think React isn't bad per se, many times it's a cleaner solution over native js when it comes to complex components, which can be required by designers, shrug.