11
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: chenxuan
|
||||
* @Date: 2022-07-31 21:43:44
|
||||
* @LastEditTime: 2022-08-02 00:18:10
|
||||
* @LastEditTime: 2022-08-02 16:59:08
|
||||
* @LastEditors: chenxuan
|
||||
*/
|
||||
import Rreact,{Component} from 'react'
|
||||
@@ -15,7 +15,6 @@ class Person extends Component{
|
||||
const age=this.nodeAge.value
|
||||
const personObj={id:nanoid(),name,age}
|
||||
this.props.createPerson(personObj)
|
||||
console.log(personObj)
|
||||
this.nodeName=''
|
||||
this.nodeAge=''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user