[React] React Fundamentals: Add-on ClassSet() for ClassName
2023-09-14 09:00:55 时间
To get the add-ons, use react-with-addons.js
(and its minified counterpart) rather than the common react.js
.
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.12.2/react.js"></script>--> <script src="http://fb.me/react-with-addons-0.13.1.js"></script>
https://facebook.github.io/react/docs/addons.html
var BHeart = React.createClass({ render:function(){ var cx = React.addons.classSet; var classes = cx({ 'glyphicon': true, 'glyphicon-heart': true }); return <span className={classes}></span> } });
相关文章
- 【玩转 Cloud Studio】React Run on Cloud Studio
- Sensory & ST Micro – Natural Language on CM7 Core MCU
- react的jsx和React.createElement是什么关系?面试常问
- react源码分析:深度理解React.Context
- React魔法堂:echarts-for-react源码略读
- 在React中使用 react-router-dom 编程式路由导航【含V5.x、V6.x】
- ORA-22894: cannot add constraint on existing unscoped REF columns of non-empty tables ORACLE 报错 故障修复 远程处理
- ORA-23359: error on creating a ddl record for a repcatlog record ORACLE 报错 故障修复 远程处理
- ORA-28069: A data redaction policy already exists on this object. ORACLE 报错 故障修复 远程处理
- ORA-32100: operation invalid on transient object ORACLE 报错 故障修复 远程处理
- ORA-40391: PMML DerivedField depends on a undefined field: string ORACLE 报错 故障修复 远程处理
- ORA-48406: ECHO or TERMOUT status must be set to ON or OFF ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-011706; Symbol: ER_GRP_RPL_SQL_SERVICE_RETRIES_EXCEEDED_ON_SESSION_STATE; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-12663: Services required by client not available on the server ORACLE 报错 故障修复 远程处理
- ORA-15149: another ASM instance found running on the host ORACLE 报错 故障修复 远程处理
- No ‘Access-Control-Allow-Origin’ header is present on the requested resource详解编程语言
- 安装MySQL on Windows: A Comprehensive Installation Guide(mysqlwin版)
- 优化Optimizing Time on MySQL Server(mysql服务器的时间)
- React 许可证虽严苛,但不必过度 react
- Installing Tarball Packages on Linux Systems(linux安装tgz)
- The Ultimate Guide to Playing MP4 Videos on Linux: Everything You Need to Know(linuxmp4)
- MySQL中使用ON子句进行精准查询(mysql中on子句查询)
- delete cascadeOracle 中 ON DELETE CASCADE 的使用(oracle中的on)
- Oracle数据库中ON关键字的使用方法(oracle中on怎么用)