UNPKG
mirrorx
Version:
latest (1.1.3)
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
0.2.13
0.2.12
0.2.11
0.2.10
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.2
0.1.1
0.1.0
A React framework with minimal API and zero boilerplate.
github.com/mirrorjs/mirror
mirrorjs/mirror
mirrorx
/
lib
/
toReducers.js
15 lines
(12 loc)
•
284 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
[
"default"
] = toReducers;
var
_model =
require
(
"./model"
);
function
toReducers
(
) {
return
_model.
models
.
reduce
(
function
(
acc, cur
) { acc[cur.
name
] = cur.
reducer
;
return
acc; }, {}); }