diff options
| author | Wes Bos <wesbos@gmail.com> | 2017-09-21 15:39:12 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2017-09-21 15:39:12 -0400 |
| commit | 3b45dd7b593825721ec9ee9f6a49c732601b1ae0 (patch) | |
| tree | a2e8e73d6b6b6bc32eda2bb79af817397e4304f5 /notes.md | |
| parent | 1450e579c67e3d969cb099dfe6c1cefd1e313fb5 (diff) | |
Cha Ching
Diffstat (limited to 'notes.md')
| -rw-r--r-- | notes.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/notes.md b/notes.md new file mode 100644 index 0000000..798953c --- /dev/null +++ b/notes.md @@ -0,0 +1,40 @@ +## 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 + + |
