@gechiui/compose
Version:
GeChiUI higher-order components (HOCs).
12 lines • 502 B
TypeScript
/**
* A Higher Order Component used to provide and manage internal component state
* via props.
*
* @deprecated Use `useState` instead.
*
* @param {any} initialState Optional initial state of the component.
*
* @return {any} A higher order component wrapper accepting a component that takes the state props + its own props + `setState` and returning a component that only accepts the own props.
*/
export default function withState(initialState?: any): any;
//# sourceMappingURL=index.d.ts.map