You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
434 B
11 lines
434 B
11 years ago
|
---
|
||
|
id: jsx-root-node-count-tip
|
||
|
title: Maximum number of JSX root nodes
|
||
|
layout: docs
|
||
|
permalink: jsx-root-node-count-tip.html
|
||
|
---
|
||
|
|
||
|
Currently in `render`, you can only return one node; if you have, say, a list of divs to return, you must wrap your components within, say, one big `div` or `span` (or any other component).
|
||
|
|
||
|
Don't forget that JSX compiles into regular js, and returning two functions doesn't really make syntactic sense.
|