Message from JavaScript discussions

October 2020

— What is reacts equivalent to vues and angulars scope/$ vars?


Personally I manage such stuff in a util folder, api calls aren't related to any lib or logic, they may be used everywhere but I like em at one central place, might differ per person and style tho 🤷🏿‍♂️

— Like.. in vue I can define global plugins (this.$axios.get() and in angular I can define so called services available in all modules

Message permanent page

— Redux-saga is related to it

— Am I the only one using plain-old fetch for api?

— Too low-level for me

— React has no direct global store, you can mock one very easily but idk, defining axios and using the instance every works also

Message permanent page

— Idk -saga tbh

— How do you do DI in react then? 🤔

— (not by using, only by name)

— Depends on the project, I'm also a fan of redaxios 🔍

— It's partly built-in I think 👀