Last active
February 14, 2023 21:23
-
-
Save ndudar/d3f876ee4b69c96c2c6a4a391a867578 to your computer and use it in GitHub Desktop.
Pseudocode for the custom Hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from "react" | |
const useMyCustomHook = (param) => { | |
const[data, setData] = useState(null) | |
useEffect(() => { | |
useEffect logic | |
}, [param]) | |
return { data } | |
} | |
export default useMyCustomHook |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment