score:1

Accepted answer

the binding you mentioned isn't happned automagically.
i think it should be enough to put the decoration call in componentwillupdate() callback as well.

componentwillupdate(nextprops, nextstate){
 this.newchildren = decorateinputs(nextprops.children, nextstate.fields);
}

read more about compontent lifecycle.


Related Query

More Query from same tag