# JSX syntax error?

**URL:** <https://forum.freecodecamp.org/t/jsx-syntax-error/256804>\
**Category:** General\
**Created:** [February 5, 2019, 6:59am UTC](https://forum.freecodecamp.org/t/jsx-syntax-error/256804 "2019-02-05T06:59:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhouxiang19910319](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/zhouxiang19910319/32/98849_2.png) [@zhouxiang19910319](https://forum.freecodecamp.org/u/zhouxiang19910319)\
**Post date:** [February 5, 2019, 6:59am UTC](https://forum.freecodecamp.org/t/jsx-syntax-error/256804/1 "2019-02-05T06:59:27Z")

</div>

Does this line of code have some sort of syntax error?  
It shouldn’t be right???

```auto
<Link to={post.node.frontmatter.path}>Read More</Link>

```

 ![36%20PM](https://global.discourse-cdn.com/freecodecamp/original/3X/2/4/242cde109d5d6989ac5f56f47b731d40e57df052.png)

---

<div class="post-metadata">

**Author:** ![Marmiz](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marmiz/32/74845_2.png) [@Marmiz](https://forum.freecodecamp.org/u/Marmiz)\
**Post date:** [February 5, 2019, 9:03am UTC](https://forum.freecodecamp.org/t/jsx-syntax-error/256804/2 "2019-02-05T09:03:19Z")

</div>

The error is explained in the line above:

> Adjacent JSX elements must be wrapped in an enclosing tag

This is because you are returning two elements simultaneously.

```auto
<div key={post.node.id}>
</div>
<Link></Link

```

Simply wrap them into a `div` or a `React.Fragment`

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:05pm UTC](https://forum.freecodecamp.org/t/jsx-syntax-error/256804/3 "2021-01-17T20:05:42Z")

</div>

Closed on January 17, 2021, 8:05pm UTC


