标签: reactjs function variables
// something.jsx let variable1; const SOMETHING = () => { return <div>..something</div> }
如果渲染了SOMETHING组件,还渲染了variable1吗? (意味着每次渲染组件时都要声明?)
PS。我要在SOMETHING组件中使用variable1!