main
Last change
on this file since d565449 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
|
Line | |
---|
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.