improve(docs): use computed key to demonstrate statePlugin namespacing (#4193)
This commit is contained in:
@@ -4,12 +4,12 @@ A plugin is a function that returns an object - more specifically, the object ma
|
|||||||
|
|
||||||
### Format
|
### Format
|
||||||
|
|
||||||
A plugin return value may contain any of these keys, where `myStateKey` is a name for a piece of state:
|
A plugin return value may contain any of these keys, where `stateKey` is a name for a piece of state:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
statePlugins: {
|
statePlugins: {
|
||||||
myStateKey: {
|
[stateKey]: {
|
||||||
actions,
|
actions,
|
||||||
reducers,
|
reducers,
|
||||||
selectors,
|
selectors,
|
||||||
|
|||||||
Reference in New Issue
Block a user