class { onInput(input) { this.state = { error: null }; } submit() { var self = this; setTimeout(function() { self.state.error = "FATAL ERROR"; }, 50); } }

FATAL ERROR