Trying out different props.

This commit is contained in:
2020-07-26 12:01:52 -07:00
parent 86d569b37d
commit fc6837c47c

View File

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