How can you set state initially (within the constructor() method)?

constructor() {
super();
this.state = { name: "Vikas" };
}

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.