- ReactJS by Example:Building Modern Web Applications with React
- Vipul A M Prathamesh Sonpatki
- 59字
- 2021-07-09 19:36:59
Self closing tag
"Another thing that you must have noticed is how the component tag is closed in ReactDOM.render
" added Mike.
ReactDOM.render(<App .../>, document.getElementById('container'));
"As JSX is based on XML, it allows adding a self-closing tag. All the component tags must be closed either with self-closing format or with a closing tag."
"Thanks Mike! Things make much more sense now."
推薦閱讀
- Mastering Entity Framework Core 2.0
- Data Analysis with IBM SPSS Statistics
- 精通Python自然語言處理
- Learning Data Mining with R
- Learning Apache Mahout Classification
- 微服務(wù)架構(gòu)深度解析:原理、實踐與進階
- C++ Application Development with Code:Blocks
- 人工智能算法(卷1):基礎(chǔ)算法
- 軟件體系結(jié)構(gòu)
- Emotional Intelligence for IT Professionals
- Mastering VMware Horizon 7(Second Edition)
- C語言從入門到精通
- Android高級開發(fā)實戰(zhàn):UI、NDK與安全
- HTML5+CSS3+jQuery Mobile+Bootstrap開發(fā)APP從入門到精通(視頻教學(xué)版)
- 深入理解MySQL主從原理