“The only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven’t found it yet, keep looking and don’t settle.” — Steve Jobs
I bet the person who added atob() and btoa() to JavaScript was not the same person who developed APIs such as getElementById() and getElementsByClassName().
“So why is Next.js so pushy about [React Server Components]? I can't avoid feeling that the new direction taken by Next.js is not designed to help developers, but to help Vercel sell React.”
The triangle is displayed as a fixed position pseudo element (::after) cropped with clip-path and anchored to:
- The cursor
- The top-start of the submenu
- The bottom-start of the submenu
The coordinates get updated on mousemove and when the menu repositions. The triangle is