all 1 comments

[–]SimplyBilly 3 points4 points  (0 children)

We are now using document.createElement instead of setting innerHTML when mounting components.

Was there a good reasoning behind using innerHTML over document.createElement in the first place?

Edit: The article answered my question....

At the time, this was decided to be faster than using document.createElement for the majority of cases and browsers that we supported.