Skip to content
Nathmie Slamang

Nathmie Slamang

  • Home
  • About
  • Projects
  • Contact
  • Blog

ReactJS – Prevent Right Click

March 11, 2020

I built an app where I needed to prevent users from right clicking on the UI.

 // Prevent Right Clicking
  const contextMenu = (e) => {
    e.preventDefault();
    //addMenu.popup(e.clientX, e.clientY);
  }

 
  return (

    <div className="App" onContextMenu={ contextMenu }      >
 
...
Categories Web Development Tags reactjs
Post navigation
ReactJS – Common Project Tasks in my Web App Development
How to optimize SVG Images

Hire Me

Let us discuss your next project and take your digital efforts to the next level

Contact

Categories

  • Business
  • DevOps
  • Hosting
  • Networking
  • Productivity
  • Projects
  • SQL
  • Uncategorized
  • Web Design
  • Web Development
  • Website Performance Optimization

Tags

caching css genesis framework headless html5 linux netlify php prefetching preload pwa reactjs remote desktop security serverpilot windows server wordpress

Recent Posts

  • React Notes, Remineders and Links May 11, 2022
  • SQL Course Notes and Reminders February 28, 2021
  • How to create a Windows 10 Bootable USB July 30, 2020
  • How to backup a folder in Linux manually and exclude a directory May 7, 2020
  • Linux – How to Find the Largest Files in a Directory May 7, 2020

Archives

  • May 2022
  • February 2021
  • July 2020
  • May 2020
  • April 2020
  • March 2020
2023 © Nathmie Slamang