<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>vsuko</author_name>
  <author_url>https://blog.hatena.ne.jp/vsuko/</author_url>
  <blog_title>凡人会社員の成長日記</blog_title>
  <blog_url>https://vsuko.hateblo.jp/</blog_url>
  <categories>
    <anon>react</anon>
    <anon>react-hook-form</anon>
  </categories>
  <description>大変便利なreact-hook-form。 便利なreact-hook-formにはdefaultで使えるvalidation機能があります。 &lt;input {...register('firstName', { required: true, max: { value: 10, message: 'error' } })} /&gt; このような形でregisterで登録するときに、optionsを指定すれば、ある程度のvalidationを実装することは可能です。 ただ、複数の入力項目になった場合、componentの内部で設定を持つと見にくいですし、設定の仕方も少し直感的ではないです。 そこで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvsuko.hateblo.jp%2Fentry%2F2022%2F06%2F19%2F092039&quot; title=&quot;react-hook-form #2 validationを行いたい(yup) - 凡人会社員の成長日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://www26.a8.net/svt/bgt?aid=220526984177&amp;wid=001&amp;eno=01&amp;mid=s00000016735001068000&amp;mc=1</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-19 09:20:39</published>
  <title>react-hook-form #2 validationを行いたい(yup)</title>
  <type>rich</type>
  <url>https://vsuko.hateblo.jp/entry/2022/06/19/092039</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
