{"provider_url":"https://hatena.blog","author_name":"na_ah","blog_title":"na_ah\u306e\u30d6\u30ed\u30b0","blog_url":"https://na-ah.hatenablog.com/","url":"https://na-ah.hatenablog.com/entry/2024/10/21/000419","provider_name":"Hatena Blog","type":"rich","title":"React Hook Form\u306e\u57fa\u672c\u307e\u3068\u3081  \u305d\u306e4\uff08formProvider\u3067\u89aa\u5b50\u9593\u3067\u30d5\u30a9\u30fc\u30e0\u60c5\u5831\u3092\u3084\u308a\u3068\u308a\u3059\u308b)","published":"2024-10-21 00:04:19","categories":[],"height":"190","author_url":"https://blog.hatena.ne.jp/na_ah/","description":"\u3053\u3093\u306b\u3061\u306f\uff01 \u4eca\u56de\u306fReact Hook Form\u306e\u57fa\u672c\u307e\u3068\u3081\u306e4\u56de\u76ee\uff08\u6700\u7d42\u56de\uff09\u3067\u3059\u3002 formProvider \u89aa\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8 import { useForm, FormProvider } from 'react-hook-form' import ChildComponent from '/ChildComponent'; const ParentForm = () => { const methods = useForm() const onSubmit = (data) => { console.log(data) } return ( <FormProvider {...met\u2026","image_url":null,"version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fna-ah.hatenablog.com%2Fentry%2F2024%2F10%2F21%2F000419\" title=\"React Hook Form\u306e\u57fa\u672c\u307e\u3068\u3081  \u305d\u306e4\uff08formProvider\u3067\u89aa\u5b50\u9593\u3067\u30d5\u30a9\u30fc\u30e0\u60c5\u5831\u3092\u3084\u308a\u3068\u308a\u3059\u308b) - na_ah\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%"}