20
rated 0 times
[
26]
[
6]
/ answers: 1 / hits: 191079
/ 9 Years ago, mon, january 18, 2016, 12:00:00
I am trying to clear a components state
but can't find a reference for the es6 syntax. I was using:
this.replaceState(this.getInitialState());
however this does not work with the es6 class syntax.
How would I achieve the same result?
More From » reactjs