Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "Import nextjs link": {
- "scope": "javascript, typescript",
- "prefix": "inl",
- "body": [
- "import Link from 'next/link';",
- ],
- "description": "import next link"
- },
- "Import nextjs router": {
- "scope": "javascript, typescript",
- "prefix": "inr",
- "body": [
- "import Router from 'next/router';",
- ],
- "description": "import next router"
- },
- "Use Next link standard": {
- "scope": "javascript, typescript",
- "prefix": "nxl",
- "body": [
- "<Link href='$1'>",
- "<a>$0</a>",
- "</Link>",
- ],
- "description": "use next link"
- },
- "Use Next link with query": {
- "scope": "javascript, typescript",
- "prefix": "nxlq",
- "body": [
- "<Link",
- "href={{",
- "pathname: '$1'",
- "query: { $2 }",
- "}}",
- ">",
- "<a>$0</a>",
- "</Link>",
- ],
- "description": "use next link w pathname and query"
- },
- "Use Next router": {
- "scope": "javascript, typescript",
- "prefix": "nxr",
- "body": [
- "Router.push({",
- "pathname: '$1',",
- "query: { $0 },",
- "})"
- ],
- "description": "use next router"
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement