We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitRepo: ➡️
一个可以用于线上环境构成要素有:
所以下面我们来示范一个组件的写法
import React, {Component} from 'react' import PropTypes from 'prop-type' import ReactDom from 'react-dom' import EventEmitter from 'events' import classnames from 'classnames' import Cssmodule from 'react-css-module' import {Seq} from 'immutable' import {immutableRenderDecorator} from 'react-immutable-render' import {motion, spring} from 'react-motion' //动画特效 import Styles from './app.scss' // css 模块化 @immutableRenderDecorator // Decorator @Cssmodules(styles, {allowMutiple: true}) // 模块化 Class TabPane extends Component { static PropTypes = { tab: Proptypes.oneOfType([ Propstypes.string, Propstypes.node ]).isRequired, order: PropTypes.string.isRequired, disable: PropTypes.boolean, isActive: PropTypes.boolen } render() { const {className, isActive,children} = this.props; const classes = classnames({ panel: true, contentActive: isActive, }); return( <div role="tabpanel" styleName={classes} aria-hidden={!isActive}> {children} </div> ) } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
环境
生产需求
一个可以用于线上环境构成要素有:
初步结论
所以下面我们来示范一个组件的写法
The text was updated successfully, but these errors were encountered: