React - Error when using hook inside a function

后端 未结 0 590
栀梦
栀梦 2021-01-15 06:14

When using the npm package "use-dark-mode" I try to apply the hook const darkMode = useDarkMode (false); inside a function but i get

相关标签:
回答
  • 消灭零回复
提交回复
热议问题