function useRefValues(value) {
const ref = React.useRef(value);
React.useEffect(() => {
ref.current = value;
});
return [ref];
}
blog6.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment