1 | /**
|
2 | * Baobab-React Decorators
|
3 | * ========================
|
4 | *
|
5 | * ES7 decorators sugar for higher order components.
|
6 | */
|
7 | ;
|
8 |
|
9 | Object.defineProperty(exports, '__esModule', {
|
10 | value: true
|
11 | });
|
12 | exports.root = root;
|
13 | exports.branch = branch;
|
14 |
|
15 | var _higherOrderJs = require('./higher-order.js');
|
16 |
|
17 | function root(tree) {
|
18 | return function (Component) {
|
19 | return (0, _higherOrderJs.root)(Component, tree);
|
20 | };
|
21 | }
|
22 |
|
23 | function branch(specs) {
|
24 | return function (Component) {
|
25 | return (0, _higherOrderJs.branch)(Component, specs);
|
26 | };
|
27 | } |
\ | No newline at end of file |