当前位置:网站首页>JSX syntax rules
JSX syntax rules
2022-04-23 20:31:00 【Different 213】
jsx Rule of grammar :
1. Define the virtual DOM when , Don't write colons
2. In the label JS We need to use {}
3. The class name of the style should not be specified with class, Use className.
4. inline style , Use style={
{key:value}} To write in the form of . Some need to write in a small hump , for example :font-size Need to be written fontSize
5. There can only be one tag .
6. Label must be closed .
7. Label initials :
(1). If it starts with a lowercase letter , Then convert the label to HTML An element with the same name in , if HTML There is no element with the same name corresponding to this tag in the , False report .
(2). If it starts with a capital letter ,react Just render the corresponding components . If the component is not defined , False report .
版权声明
本文为[Different 213]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210550450562.html
边栏推荐
- The construction and use of Fortress machine and springboard machine jumpserver are detailed in pictures and texts
- How can matlab obtain the truncated image in trainingimagelabeler
- After route link navigation, the sub page does not display the navigation style problem
- 【PTA】L2-011 玩转二叉树
- Sqoop imports data from Mysql to HDFS using lzop compression format and reports NullPointerException
- [PTA] l2-011 play with binary tree
- Browser - learning notes
- Async function ------ ES6
- ArcGIS js api 4. X submergence analysis and water submergence analysis
- 內網滲透之DOS命令
猜你喜欢
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
LeetCode 116. Populate the next right node pointer for each node
JS arrow function user and processing method of converting arrow function into ordinary function
Development of Matlab GUI bridge auxiliary Designer (functional introduction)
What is the difference between a host and a server?
Shanghai responded that "flour official website is an illegal website": neglect of operation and maintenance has been "hacked", and the police have filed a case
Leetcode 994, rotten orange
Some basic knowledge of devexpress report development
GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
How to configure SSH public key in code cloud
随机推荐
Three. Based on ply format point cloud voxel model JS upload interface writing
BMP JPEG 图片转换为矢量图像 ContourTrace
Sqoop imports tinyint type fields to boolean type
Thirty What are VM and VC?
Matlab analytic hierarchy process to quickly calculate the weight
上海回应“面粉官网是非法网站”:疏于运维被“黑”,警方已立案
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
【PTA】L2-011 玩转二叉树
JDBC database addition, deletion, query and modification tool class
bounding box iou
Leetcode 709, convert to lowercase
Solution to PowerDesigner's failure to connect to MySQL in x64 system
Customize timeline component styles
XXXI` Prototype ` displays prototype properties and`__ proto__` Implicit prototype properties
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
LeetCode 1351、统计有序矩阵中的负数
Research on open source OCR engine
SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network