问答详情
源自:2-3 高阶组件介绍(3)

index.js:1375 Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it. in A (at App.js:9) in div (at App.js:8

index.js:1375 Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.

    in A (at App.js:9)

    in div (at App.js:8)

    in App (at src/index.js:5)

报错了


提问者:weibo_精慕门7199169 2019-12-01 21:42

个回答

  • 叶0528
    2021-08-02 10:34:56

    App.js不引入A.js

  • 叶0528
    2021-08-02 10:34:46

    App.js不引入A.js

  • qq_小屁孩_3
    2019-12-08 22:48:49

    贴代码,看你代码才知道那里有问题