useMemo .cursorrules prompt files

useMemo is a React Hook that memoizes expensive calculations to improve performance by recomputing only when dependencies change.