update
This commit is contained in:
parent
ca57edd143
commit
81cdb5b2e1
3 changed files with 19 additions and 0 deletions
|
|
@ -168,3 +168,20 @@ registerBlockType( '${1:namespace}/${2:block-name}', {
|
|||
},
|
||||
} );
|
||||
endsnippet
|
||||
|
||||
snippet rtw "React + twin.macro"
|
||||
import * as React from "react"
|
||||
import 'twin.macro'
|
||||
|
||||
const `!p snip.rv = snip.basename` = ({ children }) => {
|
||||
return (
|
||||
<$1 tw="$0">
|
||||
{children}
|
||||
</$1>
|
||||
)
|
||||
}
|
||||
|
||||
export default `!p snip.rv = snip.basename`
|
||||
|
||||
endsnippet
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue