歡迎來到 Modern Web 2018 共筆
共筆入口:https://hackmd.io/c/MW18
手機版請點選上方 按鈕展開議程列表。
App 由 Components 組成。
Pattern 是專家經過不斷的嘗試,所找出解決某個情況問題的方法
Pattern 可以見微知著
eg. 動物毛皮、畢氏定理
code: https://github.com/xJkit/modern-web-2018-demo
Presentational and Container compinents – Dan Abramov 原文連結
Container Component
Presentational Component
How to custom UI Styles ?
問題:
關鍵方法:使用 React.Children 將子組件暴露出來。
問題:無法取得 children 的 children
解法:使用 Provider
Def: A render prop is a function prop that a compoent uses to know what to render
react doc: https://reactjs.org/docs/render-props.html
use case:
use case:
解決的問題:Props drilling
MW18
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing