Tuesday, 31 January 2017

// // Leave a Comment

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

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

0 comments:

Post a Comment