init
This commit is contained in:
23
snippets/rjsx-mode/React/rafcp
Normal file
23
snippets/rjsx-mode/React/rafcp
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- mode: snippet -*-
|
||||
# uuid: a85f3fea-065d-499b-a297-b6e3f516c2d7
|
||||
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
|
||||
# name: reactArrowFunctionComponentWithPropTypes
|
||||
# key: rafcp
|
||||
# --
|
||||
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
const ${1:`(yas-jsx-get-class-name-by-file-name)`} = (props) => {
|
||||
return (
|
||||
<div>
|
||||
$0
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
$1.propTypes = {
|
||||
|
||||
}
|
||||
|
||||
export default $1
|
||||
Reference in New Issue
Block a user