Hey guys,what's the best practice for classes with nested properties?
The following appears to work but, idk, it looks kinda wrong to me: http://share.framerjs.com/6t247ful81ot/
Seems fine to me.
Why extend base class?
Depends on the complexity of your class I guess? I do it sometimes for stuff where property names would get too long for convenience otherwise, or if a whole set of properties are optional. I prefer just one level for purely aesthetic reasons when I can, but just do whatever makes for more elegant logic for your class :)
This makes sense, and is mostly what I do too. I agree that it feels like there might be a prettier way to write it though.