由于分页问题,我有一个警告错误。我使用的是资料Ui,我有一个搜索函数,问题是当我转到第2页并试图搜索某些内容时,我会得到以下错误
Failed prop type: Material-UI: the page prop of a TablePagination is out of range (0 to 0, but page is 1)
当前表分页代码是
<TablePagination
onClick = {handleDrawerClose}
rowsPerPageOptions={[5, 20, 50]}
我开发了一个网络应用程序使用react和资料-用户界面和反应。当我使用分页时,我得到了以下错误。
index.js:1452 Warning: Material-UI: You are using the typography variant caption which will be restyled in the next major release.
Please read the migration guide under https://material-ui.com/style/typography#migration-to-typography-v2
我在代码中使用下面的分页方
我如何告诉onChange在update按钮上将禁用按钮设置为true,如果this.state.title小于3个字符,我做了一个尝试,但它不允许我输入一个值。它几乎破坏了代码。我希望更新被传递给redux。
这里是我的,免责声明一些代码已被删除,以更相关。
PostItem.js
import React, { Component } from 'react';
import Paper from '@material-ui/core/Paper';
import Button from '@material-ui/core/Button';