DEV Community

Discussion on: 3 reasons why I went framework agnostic and why you should do that too

Collapse
 
cristinaruth profile image
Cristina Ruth

Interesting read. I've noted down to look into your suggested framework agnostic solution.

I agree there is a cost to using ready to use things especially frameworks. Good points around sharability between teams and also how each framework needs maintenance and would need upgrades.

Looking forward to reading more about framework agnostic. But curious on what the downsides are, how new it is, the developer community presence behind it, and gotchas/things to watch out for.

Collapse
 
stefannieuwenhuis profile image
Stefan Nieuwenhuis

Thank you so much! I'm glad that you enjoyed my post and I'm planning to write much more on Framework Agnostic Topics, so keep an eye out on my blog! :)

Collapse
 
gklijs profile image
Gerard Klijs

It's not really new, but web components are currently properly supported by the major browsers. So it's useful now. One of the caveats is global state. For example if you have an application where you have some profile data stored in de backend. And almost all the components need part of that data. But you could have a web component for that. But having dependencies on other components complicates things.

Collapse
 
stefannieuwenhuis profile image
Stefan Nieuwenhuis

I think managing global state is rather an architectural challenge and not so much about web components. Every application, unregarding the framework used, has to deal with a global state in one way or another and every framework or library has its own solution for it. Just take a look at Redux, RxJs, NgRx or Vuex and all the different patterns (for example the Container Components pattern in React) invented to handle (global) state effectively.

Thread Thread
 
cristinaruth profile image
Cristina Ruth

Agreed. Global state is tricky indeed. Then you add in backend and persistence and it becomes more complicated.

Thread Thread
 
raduab profile image
Radu

there's a promising state management library at sam.js.org. It is inspired and follows the semantics of the Turing Award winner Dr. Leslie Lamport's TLA+. It is also framework agnostic. You should check it out!