エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Reactビギナーズガイドをtypescriptで勉強し直してわかったこと⑤【意外と困ったnullとundefinedの使い分け】 - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Reactビギナーズガイドをtypescriptで勉強し直してわかったこと⑤【意外と困ったnullとundefinedの使い分け】 - Qiita
import * as React from 'react'; interface Props { name: string; } interface States { name: string... import * as React from 'react'; interface Props { name: string; } interface States { name: string; age: number | null; } class Human extends React.Component<Props, States> { constructor(props: Props) { super(props); this.state = { name: props.name, age: null }; } // ... } export default Human;