Please enable JavaScript.
Coggle requires JavaScript to display documents.
reactjs (learn (singe page app SPA, React.createElement:tao element moi…
reactjs
learn
-
-
-
-
component: la nơi render ra các mã html thuần nó cho ta chia nhỏ đoạn code ui thành các thành phần độc lập vs nhau cho tiện quản lý và tái sử dụng ( la 1 khoi doc lap ma ben trong chua cac state props va html)
props: chính là properties của một component : truyền data từ component bên ngoài vào bên trong (con) của nó
-
-
-
-
-
-
Proptypes: la cach tot nhat de xac thuc dau vao cua 1 component, giup chung ta kiem tra duoc cac kieu du lieu cua cac props ma component nhan vao
React.createRef: tao ra 1 tham chieu , refs :tham chieu toi 1 element DOM
-
-
-
Functionnal Stateless cach viet compnent
tham so truyen vao la props
su dung props ko can this.props
ko setstate dc
-
-
-
-
-
-