2020. 10. 14.Formik's "`setFieldValue`" returns Promise
but formik's official type def's wrong

wtf
Ref
https://github.com/formium/formik/issues/2059#issuecomment-700681150
2020. 10. 10.img:after
2020. 10. 8.conditional spread
const cond = false;
const arr = [
...(cond ? ['a'] : []),
'b',
];
// ['b']
const cond = false;
const arr = [
...(cond ? ['a'] : []),
'b',
];
// ['b']
2020. 9. 22.mobile safari font size issue
-webkit-text-size-adjust: none;
-webkit-text-size-adjust: none;
2020. 9. 22.list all remote branches
git branch -a
git branch -a
2020. 9. 17.node-sass: "Incompatible units"
max(50% - 2px) // sass Error: Incompatible units '%' and 'px'
max(50% - 2px) // sass Error: Incompatible units '%' and 'px'
calc(max(50% - 2px)) // okay
calc(max(50% - 2px)) // okay
2020. 9. 15.alt=""
To summarize, all images should have an alt attribute, but they need not all have text. Important images should have descriptive alt text that succinctly describes what the image is, while decorative images should have empty alt attributes — that is, alt="".
2020. 9. 11.div border-collapse hack
box-shadow:
<border-width> 0 0 0 <border-color>,
0 <border-width> 0 0 <border-color>,
<border-width> <border-width> 0 0 <border-color>,
<border-width> 0 0 0 <border-color> inset,
0 <border-width> 0 0 <border-color> inset;
box-shadow:
<border-width> 0 0 0 <border-color>,
0 <border-width> 0 0 <border-color>,
<border-width> <border-width> 0 0 <border-color>,
<border-width> 0 0 0 <border-color> inset,
0 <border-width> 0 0 <border-color> inset;
Ref
2020. 9. 9.chrome 에서 command palette 사용하기
shift + cmd + /
이것은 사실 Help/Search 단축키이지만 vscode의 shift + cmd + p 와 같은 용도로 사용할 수 있다.
2020. 9. 9.Uncaught TypeError: Cannot read property '__k' of null
preact app을 렌더할 DOM el이 현재 존재하지 않기 때문에 발생하는 에러