namespaced-types
v0.1.2
Published
namespaced redux types
Downloads
44
Readme
Namespaced Types
Install
npm install namespaced-types
Usage
import createTypes from 'namespaced-types';
const types = createTypes('counter', [
'INCREASE',
'DECREASE'
]);
This would produce following object:
{
INCREASE: 'counter/INCREASE',
DECREASE: 'counter/DECREASE'
}
You can pass the third argument to change the default divider string '/'.