One of our developers suggested it is preferable to not use classes to construct redux store, but didn't give a concrete reason, mostly saying "it is not idiomatic and classes are not that well-implemented in ES6; it is preferable to avoid using classes in React".
Are there any issues (even if it's actually not an industry-standard?) to construct a redux store in this manner?
class Item {
public name: string;
}
class ItemState {
public items: Item[];
public currentItem: Item;
}
// redux store
class AppState {
public Items = new ItemState();
}
// then createStore(/*reducer*/, new AppState())