Skip to content

Commit

Permalink
docs: 删除关于 props 不能传入 JSX 元素的说明
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Nov 19, 2018
1 parent e60dc37 commit b415125
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/jsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,3 @@ false、null、undefined 和 true 都是有效的 children,但它们不会直
<Content />
</View>
```

## 与 React/Nerv 最大的不同

### 属性不能传入 JSX 元素

考虑如下代码:

```jsx
const element = <Content footer={<View />} />
```

这样的代码在 Nerv/React 中使用是没有问题的,但是在 Taro 中不能这么做。

0 comments on commit b415125

Please sign in to comment.