当从数组中单击remove按钮时,我可以删除该对象,但该内容仍显示在屏幕上。我认为从数组中删除对象将重新启动map函数,该函数将再次调用循环,新内容将可见import { Modal, Button } from "react-bootstrapconsole.log(data); const [modalShowing, se
import React from "react"import { useEffect } from "react选中该行后,props.shouldHighlight将变为true。 我遇到的问题是,每次聚焦一行时,每个单独的SourceContainer组件都会重新呈现。当一行被聚焦时,isFetching在redux状态