summaryrefslogtreecommitdiffstats
path: root/notes.md
diff options
context:
space:
mode:
Diffstat (limited to 'notes.md')
-rw-r--r--notes.md40
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
+
+