react+Ts的项目使用下拉组件 menu属性报错
React.Children.only expected to receive single element child
尝试解决:用 div <></> Link 包裹还是不行
参考链接:https://blog.csdn.net/qq_38054239/article/details/80845697?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522167949212916782427417617%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=167949212916782427417617&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_v31_ecpm-2-80845697-null-null.142v76insert_down38,201v4add_ask,239v2insert_chatgpt&utm_term=react%E4%B8%ADDropdown%E7%BB%84%E4%BB%B6menu%E6%8A%A5%E9%94%99&spm=1018.2226.3001.4187
有想法的大佬评论一下!!!!!