第2.2章:React编程快捷键

2019-04-26  本文已影响0人  赵羽珩

rce

import React, { Component } from 'react'

export class App extends Component {
render() {
    return (
    <div>
        
    </div>
    )
}
}

export default App

rconst

constructor(props) {
  super(props)

  this.state = {
     
  }
}

sst

this.setState({
    
})

bnd

this.methodName = this.methodName.bind(this)

imp

import moduleName from 'module'

enf

export const functionName = (params) => {

}
上一篇 下一篇

猜你喜欢

热点阅读