接續上篇:React useState 與 batch update
原本是要寫 React.memo() 的話題,結果查資料的過程又看到一些關於 useState hook 的有趣內容,就先記錄一下這個關於 useState 的事情吧。
這篇是對之前 po 過的文章做拆分,單獨發出來,不然原本單篇好像太長了,而且這樣 title 也比較好取名。(笑)
這陣子陸續的在工作上碰到要處理 textarea 的需求,由於產品特性是製作類似數位賀卡、數位明信片那類型的玩意,所以在 UX 的期望上就跟一般的 input 表單有所區別。
這篇以 Vue user 的角度,快速紀錄一下 React 佈署至 GitHub Pages 時,與 Vue 的差異,以及一些相關要點。
首先 Vue user 們第一次學習佈署到 GitHub Pages 時,應該都碰過一個坑,就是佈署上去之後頁面一片空白。這部分去無論是去查 stackoverflow 或是找官網,都可以看到說,需要修改 webpack 的設定。