报错信息:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it’s defined in, or you might have mixed up default and named imports.

react 使用context报错 Error: Element type is invalid: expected a string (for built-in components) or a c

那是因为没有调用:React.createContext

react 使用context报错 Error: Element type is invalid: expected a string (for built-in components) or a c

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-06-30
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-12
  • 2022-12-23
  • 2021-07-22
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案