환경 설정
- npx create-react-app {name}
- npm install mobx mobx-react
파일 구조
src
│ App.js
│ index.js
│ useStore.js
│
├─components
│ BasketItem.jsx
│ BasketItemList.js
│ Counter.jsx
│ ShopItem.js
│ ShopItemList.jsx
│ SuperMarket.jsx
│ SuperMarketTemplate.jsx
│ TotalPrice.js
│
├─css
│ BasketItem.css
│ ShopItem.css
│ SuperMarketTemplate.css
│
└─stores
counter.js
market.js