I know that is it considered a good practice to name react component by adding a displayName
property, but not sure I know why. In the React docs, it says:
The displayName string is used in debugging messages. JSX sets this value automatically; see JSX in Depth.
Why is this so important? What will happen if I don't add it? (So far I haven't had it and had no issues debugging.)
Are there any recommendations / good practices on how to name the components?