Can I use javascript urls in react16.9?

  • Yes
  • No
JavaScript URLs are not allowed in React16.9 or any modern web development framework due to security concerns. JavaScript URLs are URLs that begin with "javascript:", and they allow for the execution of arbitrary JavaScript code when clicked. This can be used for malicious purposes, such as stealing user data or injecting malware. Instead of using JavaScript URLs, developers should use event handlers and other safe mechanisms to handle user interactions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *