final-form-app-form
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
export declare function compose(props: any): (Component: any) => JSX.Element; | ||
export declare function compose(containerProps: any): (Component: any) => (props: any) => any; |
@@ -1,15 +0,6 @@ | ||
import React from "react"; | ||
export function compose(props) { | ||
export function compose(containerProps) { | ||
return function (Component) { | ||
return React.createElement(Component, Object.assign({}, props)); | ||
return (props) => Component(Object.assign(Object.assign({}, containerProps), props)); | ||
}; | ||
} | ||
// function compose2(props) { | ||
// return function compose22(Component) { | ||
// const Component2 = <Component {...props}/>; | ||
// | ||
// // return hoistStatics(Connect, WrappedComponent) | ||
// return Component2; | ||
// }; | ||
// } | ||
//# sourceMappingURL=compose.js.map |
{ | ||
"name": "final-form-app-form", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "utils for final form using", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51243
580