B
B
BaronSmile2021-02-24 22:31:32
React
BaronSmile, 2021-02-24 22:31:32

Pagination React Material UI?

Greetings! What is wrong in the page navigation (pagination), from which, when switching to another page, it gives a CODE error (the component is located in the component/articles-list/articles-list.jsx folder).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-02-25
@BaronSmile

- const changePage = (page) => {
+ const changePage = (event, page) => {
    dispatch(fetchArticles(page));
};

API

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question