React Dev tools show my Component as Unknown

后端 未结 4 1814
半阙折子戏
半阙折子戏 2021-01-31 16:14

I have the following simple component:

import React from \'react\'
import \'../css.scss\'

export default (props) => {
  let activeClass = props.out ? \'is-ac         


        
4条回答
  •  时光说笑
    2021-01-31 16:31

    Currently there's no way to change it from showing up as in the devtools inspector without naming the function before exporting it, as Michael said. But if this github issue gets addressed, there may be in the future.

    https://github.com/facebook/react-devtools/issues/1294

提交回复
热议问题