From 294a783337a31b093065d80eab27b4c83364661d Mon Sep 17 00:00:00 2001 From: Thomas Hintz Date: Sun, 26 Jul 2020 12:02:10 -0700 Subject: [PATCH] Updating manuscript. --- manuscript/fundamentals--building-our-own-react.markua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/manuscript/fundamentals--building-our-own-react.markua b/manuscript/fundamentals--building-our-own-react.markua index 43519a8..ac2a895 100644 --- a/manuscript/fundamentals--building-our-own-react.markua +++ b/manuscript/fundamentals--building-our-own-react.markua @@ -307,9 +307,7 @@ function createDOMElement(element) { To set the props on an element we first clear all the existing props 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 - -{format: "javascript"} +{format: "javascript", id: "Setting DOM Props"} ``` function setDOMProps(element, domElement, prevElement) { if (prevElement) { @@ -327,7 +325,7 @@ function setDOMProps(element, domElement, prevElement) { } ``` -> React is more intelligent about only updating or removing props that need to be. +I> React is more intelligent about only updating or removing props that need to be. W> This algorithm for setting props does not correctly handle events which must be treated specially. For this exercise that detail is not important though.