React variable problem?

Hello, bosses. We usually define react component variables in the class class. But I define variables outside of class in some code. For example,

import * as React from "react";
let acd:string;
class Abc extends React.Components{
xxxxxxx///acd
}
export default Abc;

Jul.12,2021

variables defined outside

will be shared among instances of this component


will cause global variable pollution.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3838f-2c10d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3838f-2c10d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?