-
-
Notifications
You must be signed in to change notification settings - Fork 258
React 16 SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag #744
Comments
Hey @pronevich! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Hi, can you fill the issue template which GitHub shows when you create a new issue? render() {
return [
<A />,
<B />
]
} |
Assuming you're talking about something like facebook/jsx#93, nothing is official yet, and the is no new syntax in Babel at this time. Using an actual array as mentioned above is the way to go. |
Thanks guys, I got it and reinstall modules solve issue |
Hi @pronevich , how did you fix the issue? I upgraded to React v16 and even though I am rendering an array with keys, I am still getting this error. I updated all babel modules and still getting the error! |
@AleCaste maybe you miss comma between components in array? |
Wowwwwwww!!!!.... That was exactly it! Silly stupid me. |
Question: maybe exists babylon beta that supports
return array of elements
in React 16 ?The text was updated successfully, but these errors were encountered: