title: How to find display error message from API in reactjs
body: <p>I'm new to React.JS, creating an app for contacts. From API, the fields of contact got validated, if same name or phone number exists then it will show error message in API. My query is how to show the error message in UI while entering the same name or phone number. Do I need to fetch from Contact API? If yes, I could fetch the API of contacts in <code>DIdmount</code> but don't know how to show the error? Can any one help me in this?</p>