Trying out different props.

master
Thomas Hintz 4 years ago
parent 86d569b37d
commit fc6837c47c

@ -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

Loading…
Cancel
Save