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

来源:2-3 高阶组件介绍(3)

weibo_精慕门7199169

2019-12-01 21:42

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)

报错了


写回答 关注

3回答

  • 叶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

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

React高级教程之高阶组件

运用高阶组件编写高质量React应用

14486 学习 · 33 问题

查看课程

相似问题