2022年2月14日のブックマーク (4件)

  • How to convert a string to number in TypeScript?

    Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives

    How to convert a string to number in TypeScript?
    Tormits
    Tormits 2022/02/14
    string | number の変数をnumberに変換しようとするとparsIntは使えない(numberを引数に取れない)ので、 `y: number = +x;` のように+演算子を使う
  • Favicon.io - The Ultimate Favicon Generator (Free)

    Favicon Generator / Generate from Text Quickly generate your favicon from text by selecting the text, fonts, and colors. Download your favicon in the most up to date formats. Installation First, use the download button to download the files listed below. Place the files in the root directory of your website. android-chrome-192x192.pngandroid-chrome-512x512.pngapple-touch-icon.pngfavicon-16x16.pngf

    Tormits
    Tormits 2022/02/14
  • アクセシビリティ – React

    なぜアクセシビリティが必要なのか? Web アクセシビリティ(a11y とも呼ばれます)とは、誰にでも使えるようウェブサイトを設計・構築することです。ユーザ補助技術がウェブページを解釈できるようにするためには、サイトでアクセシビリティをサポートする必要があります。 React はアクセシビリティを備えたウェブサイトの構築を全面的にサポートしており、大抵は標準の HTML技術が用いられます。 標準およびガイドライン WCAG Web Content Accessibility Guidelines はアクセシビリティを備えたウェブサイトを構築するためのガイドラインを提供しています。 以下の WCAG のチェックリストはその概要を示します。 WCAG checklist from Wuhcag WCAG checklist from WebAIM Checklist from The A1

    アクセシビリティ – React
  • 非制御コンポーネント – React

    新しい React ドキュメントをお試しください。 以下の新しいドキュメントで最新の React の使い方がライブサンプル付きで学べます。 <input> <select> <textarea> まもなく新しいドキュメントがリリースされ、このページはアーカイブされる予定です。フィードバックを送る ほとんどの場合では、フォームの実装には制御されたコンポーネント (controlled component) を使用することをお勧めしています。制御されたコンポーネントでは、フォームのデータは React コンポーネントが扱います。非制御コンポーネント (uncontrolled component) はその代替となるものであり、フォームデータを DOM 自身が扱います。 非制御コンポーネントを記述するには、各 state の更新に対してイベントハンドラを書く代わりに、ref を使用して DOM

    非制御コンポーネント – React