Problem:(${ref.current})--尽管我需要像<h1> bla bla bla</h1>.Goal:这样的文本,但是如何在Reactjs或reactjs中以字符串的形式获得HTML值-- general.Note:ref.current来自const ref =React.useRef(null) --就像document.querySelector('.smth')一样
return <>{signupForm()}</>;
export default SignupComponent; 当我访问我的表单,并填写字段时,它实际上应该console.log的值的姓名Attempts to access this ref will fail. Did you mean to use React.forwardRef()?