Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
调用的地方:
声明的函数式组件:
为什么是JSX.Element | undefined,应该是 Element | null 就不会报错了。
我这样就解决了