Skip to content

✉️ フォーム操作の練習リポジトリ( React Hook Form, Yup, Resend, React Email, shadcn/ui )

Notifications You must be signed in to change notification settings

kagomen/react-form-practice

Repository files navigation

React Hook Form

npm i react-hook-form

Resend

npm i resend

React Mail

npm i react-email

Yup

npm i yup @hookform/resolvers

Immer

npm i use-immer

参考

Memo

JavaScript

  • for in
    • 配列のインデックス番号を使用して配列をすべて処理する
    • オブジェクトにも使用可
const array = ["a", "b", "c", "d"];

for (let i in array) {
  console.log(array[i]);
}

const obj = {
  name: "aaa",
  age: "20",
};

for (let key in obj) {
  console.log(key, obj[key]);
}
  • for of
    • 配列の要素を使用して配列をすべて処理する
    • オブジェクトには使用不可
const array = ["a", "b", "c", "d"];

for (let item of array) {
  console.log(item);
}
  • forEach
    • 引数に要素とインデックスをとる
    • オブジェクトには使用不可
const array = ["a", "b", "c", "d"];

array.forEach((item, index) => {
  console.log(item, index);
});
  • Unicode 正規化形式

    • NFC(デフォルト)
    • NFD
    • NFKC
    • NFKD

検索について

  • アルファベットの小文字と大文字は区別した方が良いのか?

Google 検索では、英語の大文字と小文字は区別されません。検索語句は大文字で入力しても、すべて小文字として認識されます。

Resend

About

✉️ フォーム操作の練習リポジトリ( React Hook Form, Yup, Resend, React Email, shadcn/ui )

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published