This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
Use filename as component name when exporting anonymous function as default #1294
Closed
Description
When a component is exported via an anonymous function
//...
export default () => <SomeComponent />;
It shows up as <Unknown>
in react-devtools.
But I've noticed that react-devtools is able to identify which file the component came from, so it would be helpful to somehow use the filename instead of "Unknown" so that engineers don't have to change their coding style to use the inspect feature to the fullest.
Metadata
Metadata
Assignees
Labels
No labels