initial commit
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
1314830576
commit
15aae9a57c
9
packages/learn/utils/stateManagment.js
Normal file
9
packages/learn/utils/stateManagment.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export function createTypes(types, ns) {
|
||||
return types.reduce(
|
||||
(types, action) => ({
|
||||
...types,
|
||||
[action]: `${ns}.${action}`
|
||||
}),
|
||||
{}
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user