React and TypeScript
setError
Sets a field or root error, including a simulated server rejection.
Formal Syntax & Structure
react syntaxreact
setError("root.server", {type:"server",message:"Unavailable"})Working Example
Example Snippetreact
setError("root.server", {type:"server",message:"Unavailable"})