Agree on the use of white lithium grease, but WD-40 isn't "junk" - it's just not a grease and therefore isn't meant to provide long term lubrication.
It was originally developed as a water displacer - thus the name WD-40 (40th attempt). It also works well as a penetrating oil for loosening rusted fasteners.
Some people try to use it for long term lubrication and it's not designed for that.