UNPKG
@vergiss/chooks
Version:
latest (0.5.0)
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
React hooks library
github.com/divasatanica/chooks
divasatanica/chooks
@vergiss/chooks
/
lib
/
hooks
/
useChangedProps
/
index.d.ts
4 lines
(3 loc)
•
182 B
TypeScript
View Raw
1
2
3
4
declare
type
PropsCallback
<T> =
(
prevProps
: T,
props
: T
) =>
void
;
declare
function
useChangedProps<T>(
initialProps
: T,
callback
:
PropsCallback
<T>):
void
;
export
{ useChangedProps };