ReactJs set base path -
係 GitHub 用 GitHub Page Host 果個 ReactJs Project
由於個 Page 係 Subfolder 同 存放
e.g. https://sharechiwai.github.io/code-playground
而不是 https://sharechiwai.github.io
所以當我 reploy ReactApp 到 GitHub Page 上時
當 click 去任何一條 Link 時..他沒有 suffix code-playground e.g.(contact)
便 navigate 去了 https://sharechiwai.github.io/contact
而不是很聰明地 去 https://sharechiwai.github.io/code-playground/contact
2020-08-10