/intellij-live-templates

JS & React Live templates

MIT LicenseMIT

intellij-live-templates

JS & React Live templates

Snippets

cdm

componentDidMount() {
  $END$
}

cdu

componentDidUpdate(prevProps, prevState) {
  $END$
}

con

constructor(props) {
  super(props)
  this.state = {$end$}
}

cps

const { $state$ } = this.props$end$

cts

const { $state$ } = this.state$end$

cwm

componentWillMount() {
  $END$
}

cwr

componentWillReceiveProps(nextProps) {
  $END$
}

cwu

componentWillUpdate(nextProps, nextState) {
  $END$
}

cwum

componentWillUnmount() {
  $END$
}

fdn

ReactDOM.findDOMNode($END$)

pt

$START$: React.PropTypes.$END$

rc

class $class$ extends React.Component {
  $end$render() {
    return (
      <div />
    );
  }
}

export default $class$

spt

static propTypes = {
  $end$
};

tss

this.setState({ $END$ })