Trying out different props.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user