Correct, you should rather handle the error with a component or a modal (although a modal is not really great in a UX POV, I would rather suggest a toast notification instead which is less violent).
This console.error is here because I can't account for all possible frameworks, or components, or method etc... This is the part where you'll have to work a little bit to implement this solution in your own. 😉
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Correct, you should rather handle the error with a component or a modal (although a modal is not really great in a UX POV, I would rather suggest a toast notification instead which is less violent).
This
console.error
is here because I can't account for all possible frameworks, or components, or method etc... This is the part where you'll have to work a little bit to implement this solution in your own. 😉