我正试图在我的应用程序中创建一个指向authenticate链接的组件。import React from 'react'
class Authenticated extends React.ComponentUncaught : Authenticated.render():必须返回有效的React元素(或null)。您可能已返回未定义的数组或其他无效
在下面的代码中,我希望使用React.createRef()呈现重复的元素。因为从长远来看,我必须在帮助屏幕的对话框中呈现相同的元素。 那么如何在DOM中呈现它呢?通过下面的代码,我可以获得div元素的ref,但不能在Dom中呈现它。export default class TestComponent extends R