init
This commit is contained in:
23
snippets/rjsx-mode/React/rpcp
Normal file
23
snippets/rjsx-mode/React/rpcp
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- mode: snippet -*-
|
||||
# uuid: 54fc179d-98f0-44b8-bd39-a66ac67aaf38
|
||||
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
|
||||
# name: reactClassPureComponentWithPropTypes
|
||||
# key: rpcp
|
||||
# --
|
||||
|
||||
import React, { PureComponent } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends PureComponent {
|
||||
static propTypes = {
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
$0
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user