デジタルから脱出したい - takanorip blog

Bookmarks
'use client' ディレクティブ – React
ファイルのトップに 'use client' を加えることで、当該モジュールとそれが連動してインポートしている依存モジュールがクライアントコードであるとマーク
クライアントコンポーネントとは、レンダーツリーの中の、クライアントでレンダーされるコンポーネントです。
サーバコンポーネントとは、レンダーツリーの中の、サーバでレンダーされるコンポーネントです。
サーバコンポーネントにより、クライアントに送信され実行されるコードの量を減らすことができます。バンドルされてクライアントで評価されるのはクライアントモジュールだけです。
サーバコンポーネントにはサーバ上で実行されることに伴う利点があります。ローカルファイルシステムにアクセスでき、データフェッチやネットワークリクエストのレイテンシが低い可能性があります。
サーバコンポーネントからクライアントコンポーネントに渡される props の値は、シリアライズ可能 (serializable) である必要があります。
サーバコンポーネントはユーザによるインタラクションをサポートできません。イベントハンドラはクライアントで登録されトリガされる必要があるためです。
クライアントコンポーネントとは、レンダーツリーの中の、クライアントでレンダーされるコンポーネントです。
コンポーネントモジュールに 'use client' ディレクティブが含まれている場合、そのコンポーネントは必ずクライアントコンポーネントであることが保証されます。
こんなフィーチャーフラグは気をつけろ! - Secret Ninja Blog
【CSS】input type="file"は::file-selector-buttonでスタイルをつけよう - Qiita
Design Docs
“When should you make a design document? ... If the change is large/cross-cutting, eg. will be spread over multiple PRs”
Writing forces clarity of thought. Think through major technical challenges before writing code.
Design docs are lightweight planning documents written before implementing code to solicit feedback, derive alignment, and create documentation.
How to Validate File Inputs in TypeScript with Zod
Adding File Upload using React-Hook-Form and Zod using NextKs
JavaScriptのカスタムエラーはこれでOK | Wantedly Engineer Blog
それは、コードをminifyしたときに this.name の内容も一緒に変化してしまうからです。
最初に示したコード例のように名前を文字列リテラルとして明示することで、minifyされずにエラー名を保持することができます。強い難読化の必要がなければ、エラー名はそのまま保持するほうがよいでしょう。
12 Modern CSS One-Line Upgrades | Modern CSS Solutions
React Design Patterns: Instance Hook Pattern
攻撃して学ぶJWT【ハンズオンあり】 - Money Forward Developers Blog
一番分かりやすい OpenID Connect の説明 - Qiita
「ダブルクリック」を利用する新しく深刻な脅威、すべてのブラウザが攻撃対象 | Forbes JAPAN 公式サイト(フォーブス ジャパン)
You Should Write
1. Writing is everywhere
Well-written content is like a personal assistant looking for opportunities for you 24/7. It showcases your knowledge, skills, and expertise to the readers and helps you draw more visibility to your products and services.
Writing forces you to step back, look at the bigger picture, and consider other perspectives. That helps you to spot gaps in your thinking, identify biases, and fix inaccurate assumptions.
Support more type of request body · Issue #1123 · openapi-ts/openapi-typescript
Configuration Migration Guide - ESLint - Pluggable JavaScript Linter
npx @eslint/migrate-config .eslintrc.json
Migrate to v9.x - ESLint - Pluggable JavaScript Linter
Make sure you upgrade to at least Node.js v18.18.0 when using ESLint v9.0.0.
Four new rules have been enabled in eslint:recommended:
Flat config. If you are using flat config, you can run npx eslint or eslint (if globally installed) and ESLint will assume you want to lint the current directory. Effectively, passing no patterns is equivalent to passing . .
たまに聞く「Reddit」って何?→アメリカで大人気の投稿サイト。実用的で役に立つよ | ギズモード・ジャパン
アーキテクチャ設計の民主化とADR(Architectural Decision Records)による意思決定の未来 - Facilitating Software Architecture の読書感想文 - じゃあ、おうちで学べる
習慣化 振り返り(2024年7-12月) - kakakakakku blog
altディシジョンツリー | Web Accessibility Initiative (WAI) | W3C
ウェブ制作者のためのアクセシビリティ情報 - アクセシビリティ | MDN
What is mutationKey? · TanStack/query · Discussion #6093
The mutationKey role is to link a mutation with a default option already configured or to identify a mutation to share its state like loading, error, or data across components.
Building a Typography component with Recipes in Panda CSS - Segun Adebayo
Styling components · stereobooster
What is JavaScript AST, how to play with it?
🚀⚙️ JavaScript Visualized: the JavaScript Engine
デジタルアクセシビリティアドバイザー認定試験の勉強方法 〈Basicレベル編〉|Ryo-san
Automatically Posting to Bluesky on New RSS Items
Zero Docs