Redux 的基本用法

redux的設計思想 一、web應用是一個狀態機,視圖和狀態是一一對應的 二、全部的狀態,保存在一個對象裏面react 基本概念 、API 1.1 Store: Store就是保存數據的地方,能夠理解成一個容器。整個應用只能有一個store。web import { createStore} from 'redux'; const store = createStore(func) 上面的代碼會返
相關文章
相關標籤/搜索