This commit is contained in:
Ray Elliott 2022-01-22 12:25:06 +00:00
parent ca57edd143
commit 81cdb5b2e1
3 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -198,3 +198,5 @@ dropdown
dropshipping
LightInTheBox
Etsy
Strapi
whitepapers

Binary file not shown.