├── es6 ├── sideEffect.js ├── App.js ├── namedExport.js ├── asyncAwait.html ├── esModule.html ├── arrowFunction.html ├── asyncAwaitAdv.html ├── promise.html ├── destructuringAssignment.html ├── forEach.html ├── objectReference.html └── shorthand.html ├── data └── menu.json ├── components ├── weatherIcon │ ├── 多雲時陰.svg │ ├── 多雲短暫雨.svg │ ├── 陰短暫雨.svg │ ├── 陰有雨.svg │ ├── 多雲時陰短暫雨.svg │ ├── 陰時多雲短暫雨.svg │ ├── 多雲時陰有雨.svg │ ├── 陰時多雲有雨.svg │ ├── 多雲.svg │ ├── 晴時多雲.svg │ ├── 多雲時晴.svg │ └── 晴午後短暫雷陣雨.svg ├── dataMap.html ├── propsDestructuring.html ├── createLayout.html ├── nestComponent.html └── createComponent.html ├── index.html ├── intro ├── createApp.html ├── variables.html ├── howToWork.html ├── commonProblem.html ├── jsType.html ├── reactAttr.html └── expression.html ├── form ├── reactForm.html ├── reactForm2.html ├── basicHookForm.html ├── submitForm.html └── formEvent.html ├── hooks ├── inputComponent.html ├── startHooks.html ├── inputUseState.html ├── aboutUseState.html └── useStateCallback.html └── hooksAdv ├── crossComponent.html ├── useCustomHook3.html ├── useCustomHook.html ├── lifeCycle.html ├── useReducerIntro.html └── useMemo.html /es6/sideEffect.js: -------------------------------------------------------------------------------- 1 | (function (global) { 2 | global.$ = '我是 jQuery'; 3 | })(window); -------------------------------------------------------------------------------- /es6/App.js: -------------------------------------------------------------------------------- 1 | 2 | const App = () => { 3 | const myName = '卡斯伯' 4 | return React.createElement('div', null, `我的名字是 ${myName}`); 5 | } 6 | 7 | export default App; -------------------------------------------------------------------------------- /es6/namedExport.js: -------------------------------------------------------------------------------- 1 | export const a = 1; 2 | 3 | export function b() { 4 | console.log('1'); 5 | } 6 | 7 | export function c(a, b) { 8 | return a + b; 9 | } -------------------------------------------------------------------------------- /data/menu.json: -------------------------------------------------------------------------------- 1 | { 2 | "intro": [ 3 | { 4 | "name": "建立 React", 5 | "url": "createApp" 6 | }, 7 | { 8 | "name": "章節挑戰", 9 | "url": "createReactFinal" 10 | } 11 | ] 12 | } -------------------------------------------------------------------------------- /components/weatherIcon/多雲時陰.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/多雲短暫雨.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/陰短暫雨.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/陰有雨.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/多雲時陰短暫雨.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/陰時多雲短暫雨.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/多雲時陰有雨.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/陰時多雲有雨.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/多雲.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/晴時多雲.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/多雲時晴.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /components/weatherIcon/晴午後短暫雷陣雨.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 |
createApp.htmlvariables.htmlasyncAwait.htmlhowToWork.htmlesModule.htmlarrowFunction.htmlasyncAwaitAdv.htmlpromise.htmldataMap.htmlreactForm.htmldestructuringAssignment.htmlinputComponent.htmlstartHooks.htmlinputUseState.htmlforEach.htmlcommonProblem.htmlpropsDestructuring.htmljsType.htmlcrossComponent.htmlreactForm2.htmlaboutUseState.htmlreactAttr.htmluseStateCallback.htmlexpression.htmlbasicHookForm.htmlcreateLayout.html24 | Lorem ipsum dolor sit amet consectetur adipisicing elit. Tempore molestiae 25 | facere asperiores sit aspernatur laboriosam ipsum, excepturi fuga, 26 | consequuntur cupiditate, nam a doloremque error adipisci nulla reiciendis 27 | itaque odio voluptatibus. 28 |
29 |基本每週配給,包含高麗菜、空心菜,健康不馬乎
34 | 35 |奶蛋魚肉經營養師精確估計,適合三人小家庭使用,每週一、四配送
42 | 43 |多少人數均可訂製,5 ~ 1000 人團體均適用
50 | 53 |objectReference.htmlsubmitForm.htmluseCustomHook3.htmlformEvent.htmluseCustomHook.htmllifeCycle.htmlnestComponent.htmlcreateComponent.htmlshorthand.html
5 | useReducerIntro.htmluseMemo.html