- 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."
推薦閱讀
- 程序員修煉之道:程序設計入門30講
- Microsoft Application Virtualization Cookbook
- Amazon S3 Cookbook
- Java程序設計:原理與范例
- TypeScript項目開發實戰
- 零基礎輕松學SQL Server 2016
- Python機器學習之金融風險管理
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- Rust游戲開發實戰
- 創意UI:Photoshop玩轉APP設計
- Instant Apache Camel Messaging System
- Hack與HHVM權威指南
- Professional JavaScript
- C/C++代碼調試的藝術
- 分布式系統架構與開發:技術原理與面試題解析