line 7:5: React Hook "useEffect" is called in function "topicDetail" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" react-hooks/rules-of-hooks
react里面的函数名称,首字母一定要大写的啊 !!!!!!!!!
改成这样::::topicDetail ------> TopicDetail
就没有问题了,一定要仔细一些....要不为了这种问题查了半下午,着实划不来