3 ms·
Not exactly. If you are putting something inside the tag in React, you are implitly setting inner HTML the React way, managed by the virtual DOM. This method (
by can16358p 3y ago
Not exactly. If you are putting something inside the tag in React, you are implitly setting inner HTML the React way, managed by the virtual DOM.
This method (actually not even a method but an attribute that probably calls a method if set) "bypasses" React to set the inner HTML of the element, hence "dangerous".
(But I get what you mean of course, the reply was not to you but anyone who isn't familiar with React)
- rmilejczz 3y agoYou’re right it’s not even a method lol it’s a custom dom attribute. I had no idea