Say I have the following snippet:
interface State { alarms: Alarm[]; } export default class Alarms extends React.Component<{}, State> { state = { a
Declaration:
alarms: Array
Initialization in state :
this.setState({ var1:'', var2:'' });
I prefer the above declaration