React/Meteor - call this.setState inside an Autoform hook

164 views Asked by At

I'd like to modify the state of a React component when a Meteor autoform is submitted. My code is below. I know it has something to do with scope, but I've fiddled around with where and how I call this.setState and nothing seems to work. Thanks in advance! enter image description here

1

There are 1 answers

1
Jordan England-Nelson On

Figured it out! Just needed to reassign "this".

enter image description here