Hooks Interview Questions Make a hook called as usePrevious that can track the previous value of a state variable. Make a hook called as useWindowSize that tracks the dimensions of the browser window. Make a hook called as useLocalStorage that helps us to add or remove key value pair in localstorage. Make a hook called as useGeoLocation that helps us to track lat and long of user. Make a custom hook called as useMediaQuery , this should respond to media query changes function usemediaQuery(mediaQuery) { } usemediaQuery("screen and (min-width(768px))")