diff --git a/high-performance-react.org b/high-performance-react.org index a92f862..6ca04b7 100644 --- a/high-performance-react.org +++ b/high-performance-react.org @@ -569,7 +569,7 @@ and then loop through the current props, setting them accordingly. Of course we filter out the ~children~ prop since we use that elsewhere and it isn't intended to be set directly. -#+NAME Setting DOM Props +#+NAME: Setting DOM Props #+BEGIN_SRC javascript function setDOMProps(element, domElement, prevElement) { if (prevElement) { @@ -587,10 +587,10 @@ function setDOMProps(element, domElement, prevElement) { } #+END_SRC -#+begin_info +#+begin_note React is more intelligent about only updating or removing props that need to be. -#+end_info +#+end_note #+begin_warning This algorithm for setting props does not correctly handle events