babel-plugin-transform-react-stateless-component-name
babel-plugin-transform-react-stateless-component-name copied to clipboard
Adds a display name to the stateless component in the React Dev Tools.
Results
4
babel-plugin-transform-react-stateless-component-name issues
Sort by
recently updated
recently updated
newest added
Ex1: This works ``` const higher1 = (fn) => fn export default higher1(MyComponent) ``` Ex2: This doesn't ``` const higher2 = (fn) => (props) => fn(props) export default higher2(MyComponent) ```...
enhancement
help wanted
I don't have time at the moment to make a repro, but I saw some weird instances of `displayName` being added to a named export that was not even a...