I have an interface with the following:
interface orderItem {
symbol: string,
side: string,
price: number
quantity: number
}
I want to create an array "orders" consisting of "orderItems" in my constructor.
However, orders : [orderItem] doesn't seem to be doing the trick. Does anyone know how I can proceed?
Here is what I am trying to do in my constructor:
this.state = {
orders: orderItem []
}