How to use the create-react-class.default function in create-react-class

To help you get started, we’ve selected a few create-react-class examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github repetere / jsonx / lib / components.js View on Github external
? Object.assign({}, this.props, { getState: function () { return _this.state; } })
                        : this.props
                }), body, resources);
            };
        }
        else {
            result[val] = typeof body === 'function'
                ? body
                : getFunctionFromEval({
                    body: body,
                    args: args
                });
        }
        return result;
    }, {});
    var reactComponentClass = create_react_class_1["default"](classOptions);
    if (options.name) {
        Object.defineProperty(reactComponentClass, 'name', {
            value: options.name
        });
    }
    var reactClass = returnFactory
        ? react_1["default"].createFactory(reactComponentClass)
        : reactComponentClass;
    return reactClass;
}
exports.getReactClassComponent = getReactClassComponent;

create-react-class

Legacy API for creating React components.

MIT
Latest version published 4 years ago

Package Health Score

88 / 100
Full package analysis

Popular create-react-class functions