This commit is contained in:
ManjaroOne666 2019-09-12 16:11:07 +01:00
parent e2517ba58e
commit 66b05e29fe
1 changed files with 28 additions and 3 deletions

View File

@ -45,8 +45,33 @@ snippet jsx "import React ..."
import React from "react"
export default () => (
<${1:div}>
$0
</$1>
<${1:div}>$0</$1>
)
endsnippet
snippet jsxs "import React ... (styled)"
import React from "react"
import styled from "styled-components"
const $1 = styled.${2:div}\`
$3
\`
export default () => (
<$1>$0</$1>
)
endsnippet
snippet xc "class ..."
class $1 extends React.component {
constructor(props) {
super(props)
this.setState({$0})
}
render() {
return (
)
}
}
endsnippet