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

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

Comments

Archive

Contact Form

Send