Soy nuevo para reaccionar JS. cuando el usuario hace clic en el botón, debe detectar y mostrar el error desde el back-end al usuario sin usar Hooks.
class createform extends React.component{ constructor(props){ super(props); this.handlecreateform = this.handlecreateform.bind(this); } async handlecreateform(){ try{ // some logic happens; } catch(err){ this.setstate({error}); }No sé cómo mostrar este error en el procesamiento y volver al usuario. ¡Cualquier ayuda es muy apreciada!