state = {shoppingCart: [] } allows us to set our initial state of our shopping cart to an empty array. React setState Example. In the above ...
確定! 回上一頁