mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 07:25:20 +00:00
533 B
533 B
id, title, layout, permalink
| id | title | layout | permalink |
|---|---|---|---|
| jsx-root-node-count | Maximum number of JSX root nodes | docs | jsx-root-node-count.html |
Problem
You're getting a parsing error from JSX.
Solution
You might have tried to return more than one node from JSX in render. Currently, you can only return one node; meaning that you must wrap your components within, say, a div or a span (or any other component).
Discussion
Don't forget that JSX compiles into regular js, and returning two functions doesn't really make syntactic sense.