DEV Community

Discussion on: Redux with Vanilla JS: Interview Preparation (Part 1)

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Why not classes, if you would ever want initial values / readonly / getters / setters.

The only reason I am using damn Vuex, is that I can easily $watch...

Collapse
 
anshulnautiyal profile image
AnshulJS

Yes, for initial data, classes are best but here I do not want to use complex class structure to show my point. So I use variable instead.