Last active
July 17, 2019 11:40
-
-
Save bitttttten/1f00c45269c445ae48f4aa789a8b547c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function Example() { | |
const { t } = useTranslation('home') | |
return ( | |
<span>{t('what is this value')}</span> | |
) | |
} | |
// for example, i can get the function name: | |
node.children[0].expression.callee.name === 't' // true | |
// however, arguments is just an empty array | |
node.children[0].expression.arguments // [] | |
node.children[0].expression.arguments.length === 0 // true | |
node.children[0].expression.start // 206 | |
node.children[0].expression.end // 209 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment