- 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."
推薦閱讀
- C語言程序設計案例教程
- C#完全自學教程
- Learning C++ Functional Programming
- 網店設計看這本就夠了
- SQL Server與JSP動態網站開發
- Python之光:Python編程入門與實戰
- PLC應用技術(三菱FX2N系列)
- 自己動手構建編程語言:如何設計編譯器、解釋器和DSL
- C語言編程魔法書:基于C11標準
- Developing RESTful Web Services with Jersey 2.0
- Implementing NetScaler VPX?(Second Edition)
- C#.NET程序設計
- Python Geospatial Analysis Cookbook
- Practical C Programming
- Python量化交易實戰:使用vn.py構建交易系統