--- tags: blog --- # 華麗迴避 JavaScript 關鍵詞 💃 ## 關於 CRUD ### 作法 以同義詞替換 - 💩 `new` (它甚至是形容詞而非動詞) → 👍 `create` - 💩 `delete` → 👍 `remove` - 👍 `edit` 或 `update` - 👍 `fetch` ### 理由 解構 `props` 時... ```typescript= // ❌ 不能這麼做! // 因為 `new` 和 `delete` 是關鍵詞 function Component ({ new, delete }: Props) { ... } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up