main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
338 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import * as React from 'react';
|
---|
| 2 | export declare type Element = ((state: State) => React.ReactElement<any>) | React.ReactElement<any>;
|
---|
| 3 | export interface State {
|
---|
| 4 | width: number;
|
---|
| 5 | height: number;
|
---|
| 6 | }
|
---|
| 7 | declare const useSize: (element: Element, { width, height }?: Partial<State>) => [React.ReactElement<any>, State];
|
---|
| 8 | export default useSize;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.