Create-React-App正常使用下無法更改babel設定
且為了保持產生的bundle.js不會太大
Create-React-App並不會將babel-polyfill全部打開
例如以下這些在IE中將會失敗的Function
Array.includes, String.includes, Object.values
以下簡單介紹3種解決辦法
https://github.com/tschaub/gh-pages
Publish files to a gh-pages branch on GitHub
install
|
|
config
add following to package.json
-d : base path of static files
deploy
|
|
json web token 簡單筆記
Continue readingA Simple Higher Order Component example
Simple example
For loading spinner with different Component
Recompose
https://github.com/rafrex/spa-github-pages
A React Library for HOC
Nginx With Node And Https config example
Continue reading
Deploy react app by create-react-app
Follow this guide to deploy react app to github pages.
React Create App Readme
Do something to let github pages OK with SPA
Github pages does not support SPA routings now, so you have to do followings:
Follow this guide to make SPA OK with github pages
spa github pages
Javascript中Composition示範code
當在javascript中需要多重繼承概念時可考慮使用Composition
Table of Contents
隨筆亂記
陸續增加中
javascript是近年來進步非常快的語言
Browser常常趕不上ECMA標準
導致ES6有非常多好用的新功能目前主流Browser都還沒完全支援
即使如此還是建議大家儘量使用ES6的新東西來寫
用以下提到的Polyfilling、Transpiling來做