By default, the export package name for all APIs in this section is: @modern-js/runtime/model
.
If Reduck is integrated separately from Modern.js, the export package name is: @modern-js-reduck/react
.
Provider
is a component that injects Reduck's Store into the application's component tree, making the Model accessible to components inside the component tree. Normally, Provider
is defined at the top level of the component tree.
createStore
.config
param in createApp
.