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

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

Comments

Contact Form

Send