-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.txt
60 lines (37 loc) · 917 Bytes
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#### JS EVENTS
You're probably only interested in a few mouse events, but: https://developer.mozilla.org/en-US/docs/Web/Events
#### WHEN FAT ARROWS FAIL US
This ES4 function:
function (d) {
d3.select(this).attr('fill', 'red')
}
Becomes this ES6 function:
(d) => (d, i, nodes) {
d3.select(nodes[i]).attr('fill', 'red')
}
We can't use 'this' with fat arrows
#### YOUR .gitignore FILE CONTENTS
You can start from gitignore.io
# Custom files
.DS_Store
dist
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# parcel-bundler cache
.cache
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Optional npm cache directory
.npm
# dotenv environment variables file
.env
# Optional eslint cache
.eslintcache
# Dependency directories
node_modules/