Correct way of error handling in React-Redux : <p>I want to understand what is more general or correct way of error handling with React-Redux. </p>

<p>Suppose, I have phone number sign up component.</p>

<p>That Component throws an error say if the input phone number is invalid </p>

<p>What would be a best way to handle that error? </p>

<p><strong>Idea 1:</strong> 
Create a component, which takes an error and dispatches an action whenever an error is passed to it</p>

<p><strong>idea 2:</strong> 
Since the error is related to that component, pass that error to a component (which isn't connected to redux i.e the error handler component won't dispatch the action)</p>

<p><strong>Question:</strong> Can someone guide me on proper-way of error handling in React-Redux for large-scale app? </p>
