problem description
when RT: recently used antd, there is a table on the page. The following is the paging that comes with it. When a button is clicked, the data of the form is updated, but the paging button does not return to the first page and remains in the previous position
.the figure is as follows:
1
:
react-router v4 url
--------------------------------------------------------------------
antd
The data is switched, but the paging is still on page 2 .
Ultimate question:
to put it this way, it means that in react, when we do an operation, this returns the component to its original state.
if you can, use the above example to analyze it.
Thank you
for being tired.