How to use javascript urls in react16.9?

Posted by Editorial Staff | Updated on

How to use javascript urls in react16.9?

Yes, you can use javascript: URLs but it will log a warning in the console. Because URLs starting with javascript: are dangerous by including unsanitized output in a tag like and create a security hole.

Remember that the future versions will throw an error for javascript URLs.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers