Skip to content

Commit 421c1f6

Browse files
committed
Typos
1 parent 96bd085 commit 421c1f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/web/content/blog/build-time-components.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function rehypeLinkImage() {
285285
}
286286
```
287287

288-
This plugin adds a `data-image` attribute to every _`<a>`_ tag in the HTML syntax tree.
288+
This plugin adds a `data-image` attribute to every _`<a>`_ tag in the HTML syntax tree (don't worry if you can't follow the code, the fact that it's hard to follow is one of the points I want to make later).
289289

290290
We can then use this attribute in our component and pass it to the _`<LinkWithCard>`_ component:
291291

@@ -318,7 +318,7 @@ The **build-time plugin** approach:
318318

319319
But the **client-side** approach has some advantages too:
320320

321-
- ✅ All the behavior is contained in one component, for example, if we want to add the open graph desciption to the hover card, we can do it in one place
321+
- ✅ All the behavior is contained in one component, for example, if we want to add the open graph description to the hover card, we can do it in one place
322322
- ✅ We can use the component from other places, not just markdown
323323
- ✅ We don't need to learn how to write rehype plugins
324324

@@ -458,11 +458,11 @@ Comparing this to the other two approaches, we have all the advantages:
458458

459459
- ✅ Fetches on build-time, saving the users from making redundant work
460460
- ✅ Doesn't ship the scraper code to the client
461-
- ✅ All the behavior is contained in one component, for example, if we want to add the open graph desciption to the hover card, we can do it in one place
461+
- ✅ All the behavior is contained in one component, for example, if we want to add the open graph description to the hover card, we can do it in one place
462462
- ✅ We can use the component from other places, not just markdown
463463
- ✅ We don't need to learn how to write rehype plugins
464464

465-
wihout any of the downsides.
465+
without any of the downsides.
466466

467467
**This approach has the best of both worlds. Best UX, best DX.**
468468

0 commit comments

Comments
 (0)