Adding cover page.

This commit is contained in:
2020-07-26 14:42:55 -07:00
parent d33124c6d2
commit 7654412b84
3 changed files with 5 additions and 4 deletions

View File

@@ -44,7 +44,6 @@ I see three parts: the name of the tag, the tag's properties, and its children.
| props | 'class', 'type', 'disabled' |
| children | <h1>, <input>, Hello |
{format: ":number-lines"}
```
tag name: 'div'
tag prop: 'class'
@@ -312,7 +311,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.
{format: "javascript", caption: "Setting DOM Props"}
{format: "javascript"}
```
function setDOMProps(element, domElement, prevElement) {
if (prevElement) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 MiB