-
Notifications
You must be signed in to change notification settings - Fork 0
/
AC.txt
34 lines (27 loc) · 831 Bytes
/
AC.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
--- 1. First Render
--- 2. Subsequent Render
Must work EXACTLY as First Render
3. Register
MyCustomComp.Ul1.Li1.Comp2.H1.remove()
MyCustomComp.Ul1.Li1.Comp2.H1.append(Div('', 'haha'))
4. State Update
5. Dynamic adding children (check events etc)
--- 6.0 Dom Events
6.1 Custom Events
7. User of Component Class interface should not account(know) for(of) changes that happen on re-render
8. State must not change between renders
Store a data in PuerApp, hashed by component id.
9. Prepend should not break id–hash integrity
10. Component tree is saved on register and updated on Prepend, append and rendered ONLY from this SST
class MyComp {
constructor() {
$.Events.on(MY_EVENT, _onMyEvent)
}
_onMyEvent() {}
render() {
return div({text: this.data.myText}, [
Comp2()
])
}
}
MyComp.data.MyText = 'haha1'