For this simple component, I think the best solution is to just remove as much You need to get the value from your element in the form submit function and then validate. Se voc esquecer de fazer o bind de this.handleClick e pass-lo para um onClick, o this ser undefined quando a funo for realmente chamada. This combination allows us both the opportunity to give the user something testing makes some changes to the global environment and you need to cleanup It is passed into the form