Madhu
Madhu
Jul 20, 2017 · 1 min read

Provider takes an object as prop, what you have provided is an array, Follow syntax as <Provider {counterStore: new CounterStore(), userStore: new UserStore()} />

This way counterStore, userStore will be available across all your components.

In your specific case it should be <Provider {userStore: userStore, updatesStore: updatesStore} />

)

    Madhu

    Written by

    Madhu

    Code [mobile…web] @ uncommon.is