componentWillReceiveProps
が今は legacy になっているのを知らずに使っていてびっくりしたので、https://reactjs.org/docs/react-component.html から知らなかった部分をメモ
はい
shouldComponentUpdate()
が false を返すときは発火しない
(* デバッグ用 *) | |
let rec print_env env = | |
match env with | |
| (x, v) :: rest -> (print_string (x^"="); print_value v; print_string " "; (print_env rest)) | |
| _ -> print_string "\n" |
type 'a m = 'a list | |
let (>>=) x f = List.concat (List.map f x) | |
let return x = [x] | |
let guard b = if b then return () else [] | |
let numbers = [1; 2; 3; 4; 5; 6; 7; 8] | |
let rec remove l n = | |
match l with | |
| [] -> [] |
for file in `find *.zip` | |
do | |
zip ${file} -d "*.DS_Store" | |
zip ${file} -d "*__MACOSX*" | |
done |
componentWillReceiveProps
が今は legacy になっているのを知らずに使っていてびっくりしたので、https://reactjs.org/docs/react-component.html から知らなかった部分をメモ
はい
shouldComponentUpdate()
が false を返すときは発火しない
{ | |
"editor.tabSize": 4 | |
} |
for ($i=0; $i -lt 10; $i++){ | |
mkdir ("HOGE00" + $i) | |
} |
dir | rename-item -newname { $_.name -replace 'hoge', 'fuga' } |