UNPKG
@jay19950328/react-hooks
Version:
latest (1.0.0)
1.0.0
0.2.0
0.1.2
0.1.1
0.1.0
0.0.2
react hooks
github.com/Jay0328/react-hooks
Jay0328/react-hooks
@jay19950328/react-hooks
/
useDidMount.js
10 lines
(7 loc)
•
150 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
React
from
'react'
;
function
useDidMount
(
didMount
) {
React
.
useEffect
(
function
(
) {
didMount
(); }, []); }
export
default
useDidMount;