score:8
Accepted answer
for inline exporting you need to manually specify the displayname property (i know, it's a pain).
so you do
export const mycomponent = () => {
//stuff happens here
}
mycomponent.displayname = "mycomponent";
score:1
if it's still not resolved as it wasn't for me, i found a workaround, i added -
devtool: 'eval-cheap-module-source-map'
to my webpack.config.js
and make sure to start the webpack build after adding the property.
Source: stackoverflow.com
Related Query
- Why does React dev tools show my component as Anonymous?
- Why does my component show as Anonymous in React components dev tool
- Why react dev tools Profiler dont show me component props?
- React Dev Tools does not show Component Names or State Variable Names
- React Dev tools show my Component as Unknown
- What does forwardRef by a component in React dev tools mean and how can I use it?
- Why does chrome dev tools console show a link for Post 500 error in one website but not another?
- Why does Redux store show my state, but react component says its undefined?
- Dev tools show many websocket requests of chat app built by react hook with functional component
- Why is data passed to component is causing TypeError: undefined error? Shows up in React dev tools
- Why does React warn against an contentEditable component having children managed by React?
- Why does my React Component Export not work?
- Why does React warn me against binding a component method to the object?
- React dev tools blank component
- Why does react class component always need to call super(props) in its constructor?
- Why does null React component state initialization get `never` type?
- React - How to Export Multiple Components on same File, preventing <Unknown/> Component on Dev Tools
- Prod build of React App allows React Dev Tools and show components in source tab inside Browser
- Why does Flow report my React component as being `incompatible with string`?
- Why doesn't this component show at all? React DatePicker
- Why does a simple React Component render twice?
- Why does this React component return the string '0'
- Why does graphql not inject my data into react component prop?
- Why does the render function in react is called twice when using the component strategy?
- Why does my React component remain in the DOM after navigating to another page?
- Why does `this` keyword refer to Window not Component in React onClick() method
- Why React component get re-rendered only once when state does not change?
- Why does React render component for the second time after setting the state to the same value?
- Why does react component do not re render after changing state
- Why does my Create React App Dev Server take so long to start?
More Query from same tag
- How to add paragraph in rest api including whitespaces?
- Link is appending instead of opening new link
- React Typescript: Antd Table filter
- Elements not processing event when Material-ui Popup is displayed
- Error "custom keyword definition is invalid: data.errors should be boolean"
- Unexpected token with react jsx and babel
- How to fix "undefined" issue in async call to dispatch in action creator of redux?
- React : How to make sure that requested data are available before rendering?
- Navigate to another page using Material SearchBar
- React-Router does not redirect me from a component
- Reach child does not update when state changes
- Grouping array by same property value, iterate over that array
- Is there a way for my react app to render on sign in(aws auth) to see protected routes without manual refresh of page
- ReactJS : How to pass values material ui for complex json structure
- Simulating drag drop with react testutils not working
- Why i am getting a 422 - Unprocessable Entity Error
- React Material-UI pickers how to convert moment object and set state
- npm start suddenly would not start a create-reat-app
- Cannot deploy my reactjs webpack application on google app engine
- My Redux state is not updating even-though the old an new state are not equal
- Get and use the previous state from local storage
- How To Have Multiple Axios inside UseEffect That Doesnt Turn Error?
- React onKeyPress Render Issue
- I need Regex to mask email address in javascript
- play framework returns 415 (Unsupported Media Type)
- How do i add html tags in a dynamic render and still load values?
- Cannot read property 'path' of undefined (Node js)
- How can I add icon to react ag-grid rows?
- Wrap withRouter in an ES7 function
- How can I put a ReactJS-bootstrap form and h1 tag side by side