-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnote
9 lines (9 loc) · 814 Bytes
/
note
1
2
3
4
5
6
7
8
9
1. prop bikin properties, properties itu berada di componen & untuk bikin attribute di html contoh bikin type="text" di element input
2. anonymous function, contohnya pas di callback & di d3.js
3. function bisa dimasukin ke dalam componen
4. nama componen pake huruf besar
5. state itu status, posisi sekarang dimana, gunanya untuk nanganin data, cth: value="this.state.name", this.setState = "", bisa liat data dari masa lalu selama ga di destroy
6. yield mirip pointer di c++, untuk record perubahan
7. CommentBox, CommentList, Comment, CommentInput. CommentList di loop ketika ada CommentInput
8. createelement atau JSX untuk bikin componen. JSX bikin sintaks HTML di JS
9. statefull berupa class yg return nya berhubugan dgn stateless untuk diubah this.props. nya, stateless berupa function yang merubah value