我有一个表单是从app.js包装的,他们从那里接收道具来更新文件cadastro.js上的输入和按钮,但是当我单击“编辑注册我的按钮更改”从函数getDerivedStateFromProps编辑时,使用描述的输入不会改变但是,如果我在函数中的控制台上进行调试,getDerivedStateFromProps将在正确的时间向我显示。我的代码有什么问题?/Cadastrar.css';
class Cadastr
对我来说,componentWillReceiveProps和getDerivedStateFromProps到底是个微妙的问题。因为,我在使用getDerivedStateFromProps时遇到了一个问题:state = {}
})
// But using this method will cause the check