其中一个原因是我不知道如何在React中使用复选框实现过滤。所以我求助于使用CSS进行过滤,但他们希望我使用react状态。are selected or not MS: false, }); 因此,对于这个任务,我必须进行一个API调用,这将在响应中为我提供我必须过滤这个对象,以便只有3种类型的产品保存在State中,这是没有问题的。所以我的问题是如何在
我是新的反应,试图通过属性传递对象,但得到以下错误。Uncaught Invariant Violation: Objects are not valid as a React child (found: object with keys {title}collection of children, use an array instead or wrap the object using createFragment(object) from the React这是我的代码:import React