ClientDev Bootcamp
Nodejs
- npm
- es6, es7 syntax
- tools
- process manager
- build tools
- resource
React
- abstraction: view library
- virtual DOM
- synthetic event(event handler)
- what is jsx and why
<Form>
<Input1 />
<Input2 />
</Form>
- lifecycle methods
- component == function
- props v.s state
- controlled component: 只有 props,沒有 state
- e.g. input
- resource
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
store.dispatch(fetchData(params))
Nextjs
- Overview
- what
- 使用資料夾分類要 render 什麼 page,一定要有
pages
資料夾
- ssr
- directory + Route
- style
- Resource
TangleID