What is equivalent to this in function component? – Javascript
I am using function component ,and now I want to pass itself to another objects. import GlobalParam from './GlobalParam' const TopPage = (props) =>{ const [load, setLoad] = useState(false); useEffect(() =>{ GlobalParam.topPage = this;// however it does not work in…