I agree with many of the comments, it depends on what you need the computer for.
That being said, I think RAM more than any other component (with SSD following closely these days) gives you the biggest bang for buck in performance improvement.
Many people go out and buy a newer computer because of performance reasons, in my experience if their computer has capacity, simply doubling the RAM will give the performance benefits they are looking for.