We usually get a warning on the console when we have any invalid prop type in reactjs. But I want to display an error to the developer or the user so that it becomes clear and the user needs to fix it on priorty basis. Is there any way to throw an error on the main screen instead of console?
The reason being, in my code there is an array of object that is undefined as it is not passed and i have applied a check in the proptypes but that is appearing in the console. I need some kind of popup so that the user gets a clear image that data is not available.
