profile
viewpoint

Ask questionsReact@16.9 block `javascript:void(0);`

<a href="javascript:void(0);"></a>

Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed "javascript:void(0);".

react@16.9

facebook/react

Answer questions aweary

This was part of the 16.9 release. See https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#deprecating-javascript-urls

useful!
source:https://uonfu.com/
answerer
Brandon Dail aweary @discord Austin, TX brandondail.com a11y at @discord. previously @facebook, @FormidableLabs. Helped maintain @reactjs once upon a time.
Github User Rank List