2 - Draggable Cards
2.3 Auto Grow

Move Auto grow function to utils

In persuit of keeping our code clean, let's take a minute to move the autoGrow method to our utils.js file, and import back into our NoteCard component

utils.js
export function autoGrow(textAreaRef) {
    const { current } = textAreaRef;
    current.style.height = "auto"; // Reset the height
    current.style.height = textAreaRef.current.scrollHeight + "px"; // Set the new height
}