How to make the page re-render immediately after setState

background:
manipulate Dom directly in the timer and setState, causes setState to have no effect at all.
still uses (cytoscape) is a data visualization library, in the timer, use cy"s own method to directly manipulate the increase of nodes, on the other hand, it is also in setState to control the movement of the progress bar under the diagram. Printing state in runder finds that the state has been updated, but the page has not changed. Where is the problem?

Mar.25,2021

use the forceupdate method to force updates.


does componentShouldUpdate rewrite inherit pure components or components? Ui confirmed a connection with state?

Menu