- React Design Patterns and Best Practices(Second Edition)
- Carlos Santana Roldán
- 76字
- 2021-06-24 15:43:38
Attributes
We must always keep in mind that JSX is not a standard language, and that it gets transpiled into JavaScript. Because of this, some attributes cannot be used.
For example, instead of class we have to use className, and instead of for we have to use htmlFor, as follows:
<label className="awesome-label" htmlFor="name" />
The reason for this is that class and for are reserved words in JavaScript.
推薦閱讀
- 廣電5G從入門到精通
- Mastering Node.js(Second Edition)
- 自動駕駛網絡:自智時代的網絡架構
- Mastering Machine Learning for Penetration Testing
- 電子政務效益的經濟分析與評價
- 網絡故障現場處理實踐(第4版)
- 物聯網概論(第2版)
- Learning Karaf Cellar
- Building RESTful Web Services with Spring 5(Second Edition)
- 計算機網絡原理與應用技術
- Kong網關:入門、實戰與進階
- Master Apache JMeter:From Load Testing to DevOps
- 網管第一課:網絡操作系統與配置管理
- Getting Started with Memcached
- 物聯網工程概論