I have a class:
export default class Home extends React.Component {
static store = createStore();
constructor() {
super();
// This doesn't work
console.log(this.store);
}
}
and I want to be able to access the store
variable defined at the top of the class however I'm not sure how, I had assumed it was by using this.store
but it is undefined.