サクサク読めて、アプリ限定の機能も多数!
“type Props = React.ComponentProps<'input'> // <- here export const Input = ({ value, onChange, onBlur, onFocus }: Props) => ( <input”
carolina04 のブックマーク 2022/11/19 18:34
React.ComponentProps 型を積極的に使おう[React]“type Props = React.ComponentProps<'input'> // <- here export const Input = ({ value, onChange, onBlur, onFocus }: Props) => ( <input”2022/11/19 18:34
“type Props = React.ComponentProps<'input'> // <- here export const Input = ({ value, onChange, onBlur, onFocus }: Props) => ( <input”
このブックマークにはスターがありません。 最初のスターをつけてみよう!
zenn.dev/takepepe2022/03/26
Atomic Design でいう Atoms に相当する、汎用コンポーネントについての小話です。次の様に Props 型定義を用意し、解説している記事をよく見かけます。<input />タグを使わずコンポーネント化している理由は sty...
217 人がブックマーク・8 件のコメント
\ コメントが サクサク読める アプリです /
“type Props = React.ComponentProps<'input'> // <- here export const Input = ({ value, onChange, onBlur, onFocus }: Props) => ( <input”
carolina04 のブックマーク 2022/11/19 18:34
このブックマークにはスターがありません。
最初のスターをつけてみよう!
React.ComponentProps 型を積極的に使おう
zenn.dev/takepepe2022/03/26
Atomic Design でいう Atoms に相当する、汎用コンポーネントについての小話です。次の様に Props 型定義を用意し、解説している記事をよく見かけます。<input />タグを使わずコンポーネント化している理由は sty...
217 人がブックマーク・8 件のコメント
\ コメントが サクサク読める アプリです /