🌈 搜索
📅  最后修改于: 2022-03-11 15:00:24.344000             🧑  作者: Mango
function usePrevious(value) { const ref = useRef(); useEffect(() => { ref.current = value; }); return ref.current; }