ClientDev Bootcamp

Nodejs

React

  • abstraction: view library
    • virtual DOM
    • synthetic event(event handler)
  • what is jsx and why
    • cycle js
<Form>
    <Input1 />
    <Input2 />
</Form>

Redux

  • overview
    • 狀態管理
  • state & action
    • action: 改變狀態
    • state: 可以傳到 react 的 props
  • store
    • 存放 state
    • 接收 action 改變 state
  • reducer
    • 透過 reducer 計算改變狀態,再通知 store
    • rootReducer: 最巨大的 reducer
    • reducer 可以拆分: 以combineReducer合成
  • middleware
    • action > reducer(計算下個狀態) > middleware > store
    • 不知道該在哪處理的事情,通常會丟到 middleware 中
    • tangleId 中的 CALL_API
    • redux-saga
    • redux-observable
    • redux example: Realworld
  • Connect to React
    • Provider
store.dispatch(fetchData(params))

Nextjs

TangleID

tags: tangleid