diff options
Diffstat (limited to 'frontend/notes.md')
| -rw-r--r-- | frontend/notes.md | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/frontend/notes.md b/frontend/notes.md index 3b8c1da..9ea38ef 100644 --- a/frontend/notes.md +++ b/frontend/notes.md @@ -1,37 +1,5 @@ -## Link - -Before we use next-routes, our links look like this: - -```js - <Link - href={{ - pathname: 'item', - query: { - slug: slugify(item.title), - itemId: item.id, - }, - }} - > -``` - -Once we switch to next routes, our links look like this: - -```js -import { Link } from '../routes'; - -<Link - route="item" - params={{ - slug: slugify(item.title), - itemId: item.id, - }} -> -``` - ## Commonly Used Terms -Enhancer - These are just high order components that "infuse" the data we want into our components via props - Mutation Query |
