UNPKG
@rbxts/pretty-react-hooks
Version:
alpha (0.4.0-alpha.0)
latest (0.6.4)
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.4.2
0.4.1
0.4.0
0.4.0-alpha.0
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Useful hooks for @rbxts/react
github.com/littensy/pretty-react-hooks
littensy/pretty-react-hooks
@rbxts/pretty-react-hooks
/
out
/
use-mount-effect
/
use-mount-effect.d.ts
7 lines
(6 loc)
•
217 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
EffectCallback
}
from
"@rbxts/react"
;
/** * Runs a callback when the component is mounted. *
@param
callback The callback to run. */
export
declare
function
useMountEffect
(
callback: EffectCallback
):
void
;