エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
import React, { FC } from 'react'; import { useForm } from 'react-hook-form'; type FormInputs = {... import React, { FC } from 'react'; import { useForm } from 'react-hook-form'; type FormInputs = { postTitle: string; postDescription: string; }; const Sample: FC = () => { const { register, errors, handleSubmit } = useForm<FormInputs>(); const onSubmit = (data: FormInputs) => console.log(data); return ( <form onSubmit={handleSubmit(onSubmit)}> <input name="postTitle" ref={register({ required: 'タイト