diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index 8b71d1e..a4afe51 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -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} + + ) +} + +export default `!p snip.rv = snip.basename` + +endsnippet + diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 0f89989..d3063d6 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -198,3 +198,5 @@ dropdown dropshipping LightInTheBox Etsy +Strapi +whitepapers diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index a8a4d86..1d2b013 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ