zcy-emmet
Basic
Prefix |
Method |
zcy-destruct-props→ |
const {${1:}} = this.props; |
zcy-destruct-state→ |
const {${1:}} = this.state; |
React Components
zcy-list
import React, { Component } from 'react'
export default class FileName extends Component {
render() {
return <div>$2</div>
}
}
Api Service
zcy-service-get
zcy-service-post
Async && Sync Fn
zcy-dispatch
const {dispatch} = this.props;
dispatch({
type:'${1:moduleName}/${2:typeName}',
payload:{}
})
zcy-models-effects
zcy-models-reduces
View Level
zcy-modal
zcy-sfc
const ${1:CompName} = props => (
<React.Fragment>
${2}
</React.Fragment>
)
| |