useCallback .cursorrules prompt files

useCallback is a React hook that memoizes a function to prevent unnecessary re-creations, enhancing performance by reducing re-renders in functional components.