summaryrefslogtreecommitdiffstats
path: root/notes.md
blob: 798953c7481f80fdb0090f4d29c40c84542012cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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