我试图返回一个组件,只有当它在特定类别中时,它才会呈现。从服务器获取的类别对象有一个product_ids列表。我将product_ids的列表传递给组件,并检查它是否在列表中,如果是,则返回它。Or, to render nothing, return null.
// index.js (Every other function will be in this function as well_.isEmpty(productIds) && productIds.i
我在react中有一个代码,如下所示:class UserManagement extends React.Component { super// until the users state is updated, I want to return an empty element
return null/15.1.0/react.min.js"></script&g