The example on the main Alt page shows how to connect a single store to a React component using @connectToStores
.
I wonder if we can still use @connectToStores
to connect 2 stores to a React component. I suppose the getStores
method will be like this:
static getStores() {
return [TodoStore, TodoStore2];
}
but I don't know how the getPropsFromStores
should be.
This question is answered here