-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
数组map返回自定义组件,自定义组件拿不到props传入的值。 #544
Comments
list 在 |
有用到。 //Bricks
render() {
const { list = [] } = this.props;
console.log('list', list);
return (
<View className="bricks-component">
{list.map((_, i) => (
<View key={i}>{_.recommend_search}</View>
))}
</View>
);
} |
没人解决么?比较急的一个需求。 |
有没有更多的信息,我没有复现这个问题,尝试一下升级到最新的版本试试~ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This was referenced Jun 23, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
数组map自定义组件,自定义组件拿不到props传入的值。
复现步骤
期望行为
数组map能拿到自定义组件传入props的值。
系统信息
The text was updated successfully, but these errors were encountered: