Bookmarks

Bookmarks

192 bookmarks
Newest
Mental model
Mental model
Valibot's mental model is mainly divided between schemas, methods, and actions. Since each functionality is imported as its own function, it is crucial to understand this concept as it makes working with the modular API design much easier.
Schemas are the starting point for using Valibot. They allow you to validate a specific data type, like a string, object, or date. Each schema is independent. They can be reused or even nested to reflect more complex data structures.
Methods help you either modify or use a schema.
Actions help you to further validate or transform a specific data type. They are used exclusively in conjunction with the pipe method, which extends the functionality of a schema by adding additional validation and transformation rules.
·valibot.dev·
Mental model
サーバコンポーネント – React
サーバコンポーネント – React
サーバコンポーネントはブラウザに送信されないため、useState のようなインタラクティブな API を使用できません。
React Server Components の “server” とはこの別の環境を指しています。サーバコンポーネントは、CI サーバでビルド時に一度だけ実行することも、ウェブサーバを使用してリクエストごとに実行することもできます。
·ja.react.dev·
サーバコンポーネント – React
メモリー管理 - JavaScript | MDN
メモリー管理 - JavaScript | MDN
プログラミング言語に関係なく、メモリーのライフサイクルはほぼいつも同じです。 必要なメモリーを割り当てる 割り当てられたメモリーを使用する(読み込む, 書き込む) 必要なくなったら、割り当てられたメモリーを解放する
·developer.mozilla.org·
メモリー管理 - JavaScript | MDN