Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React.Children.map 未实现? #604

Closed
mengqingshen opened this issue Sep 10, 2018 · 3 comments
Closed

React.Children.map 未实现? #604

mengqingshen opened this issue Sep 10, 2018 · 3 comments

Comments

@mengqingshen
Copy link
Contributor

React 可以通过 React.Children.map 来对 slot 进行包装,在写通用组件的时间很有用,在 Taro 中引入了 nervjs 来调用 Children.map 方法是存在的,但不管 return 什么,返回的都是 null,无法正常工作。请问这个问题有替代方案来解决吗?你们对这个 API 的计划是啥?

@luckyadam
Copy link
Member

小程序中暂时无法操作 this.props.children
H5 端是使用 nervjs 的,是说 H5 里 Children.map 方法存在 bug 么

@mengqingshen
Copy link
Contributor Author

抱歉没讲清楚,我说的是小程序。了解了,就是说小程序里无法操作 this.props.children, 了解了,多谢

@luckyadam
Copy link
Member

@mengqingshen 是的,暂时无法操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants