{"id":2597,"date":"2020-06-01T11:17:13","date_gmt":"2020-06-01T02:17:13","guid":{"rendered":"http:\/\/tacchistudios.wpengine.com\/?p=2597"},"modified":"2023-08-22T12:58:21","modified_gmt":"2023-08-22T03:58:21","slug":"building-better-react-forms-with-formik","status":"publish","type":"post","link":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/","title":{"rendered":"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b"},"content":{"rendered":"<p>\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2\u8f09\u7b49\u3001<a href=\"http:\/\/tacchistudios.wpengine.com\/ja\/case-studies\/\">\u5f0a\u793e\u3067\u5236\u4f5c\u3057\u305f\u30a2\u30d7\u30ea<\/a>\u3067\u3082\u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u3067\u4f7f\u3063\u3066\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u6709\u7528\u306aJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u306e<a href=\"https:\/\/reactjs.org\/\">React<\/a>\u3067\u66f8\u304b\u308c\u305f\u30d5\u30a9\u30fc\u30e0\u306f\u3068\u3066\u3082\u5197\u9577\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u3001\u30a2\u30d7\u30ea\u306e\u4ed6\u306e\u90e8\u5206\u306b\u5229\u7528\u3067\u304d\u308b\u958b\u767a\u6642\u9593\u3092\u8cbb\u3084\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3057\u3001\u4fdd\u5b88\u6027\u3092\u640d\u306a\u3046\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fFormik\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3044\u3053\u308c\u3089\u306e\u8ab2\u984c\u3092\u7de9\u548c\u3059\u308b\u3053\u3068\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<a href=\"https:\/\/jaredpalmer.com\/formik\/\">Formik<\/a>\u3067\u30dc\u30a4\u30e9\u30fc\u30d7\u30ec\u30fc\u30c8\u30fb\u30b3\u30fc\u30c9\u3092\u6e1b\u3089\u3057\u3001\u958b\u767a\u30b9\u30d4\u30fc\u30c9\u3092\u4e0a\u3052\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3084\u958b\u767a\u8005\u306e\u6e80\u8db3\u5ea6\u306e\u5411\u4e0a\u306b\u3064\u306a\u3052\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3067\u306f\u3001Web\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u304c\u3001<a href=\"https:\/\/facebook.github.io\/react-native\/\">React Native<\/a>\u3067\u66f8\u304b\u308c\u305f\u30e2\u30d0\u30a4\u30eb\u30d5\u30a9\u30fc\u30e0\u3067\u3082Formik\u306f\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u666e\u901a\u306eReact\u3067\u66f8\u3044\u305f\u30d5\u30a9\u30fc\u30e0<\/h2>\n<p>React\u3092\u4f7f\u3044\u59cb\u3081\u3066\u6700\u521d\u306b\u601d\u3063\u305f\u3053\u3068\u306e\u4e00\u3064\u306f\u5fc5\u8981\u306a\u30dc\u30a4\u30e9\u30fc\u30d7\u30ec\u30fc\u30c8\u30fb\u30b3\u30fc\u30c9\u306e\u91cf\u3067\u3057\u305f\u3002\u3053\u308c\u306f\u7279\u306b\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3068\u304d\u306b\u5f53\u3066\u306f\u307e\u308a\u3001\u904e\u5ea6\u306b\u5197\u9577\u3067\u7e70\u308a\u8fd4\u3057\u304c\u591a\u3044\u3067\u3059\u3002\u4f8b\u3048\u3070\u5f0a\u793e\u3067\u958b\u304b\u308c\u305fFormik\u95a2\u9023\u306e\u77e5\u8b58\u5171\u6709\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3057\u305f\u4e0b\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/22d624fa3deb8939e6bba6ab7fc1d826.js\"><\/script><\/p>\n<p><code>useState<\/code>\u306e\u6700\u521d\u306e\u4f7f\u7528\u6cd5\u3068\u3057\u3066\u30d5\u30a9\u30fc\u30e0\u306e\u521d\u671f\u5024\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5099\u3048\u308b\u305f\u3081\u306bstate\u3092\u4f7f\u7528\u3057\u3001\u307e\u305f\u30d5\u30a9\u30fc\u30e0\u304c\u63d0\u51fa\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u3082\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u5165\u529b\u3084\u30e6\u30fc\u30b6\u30fc\u304c\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u96e2\u308c\u308b\u3053\u3068\u3067\u5024\u3092\u66f4\u65b0\u3057\u305f\u308a\u30a8\u30e9\u30fc\u3092\u767a\u751f\u3055\u305b\u308b\u3044\u304f\u3064\u3082\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u304c\u3042\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u306f\u30d5\u30a9\u30fc\u30e0\u63d0\u51fa\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3082\u3042\u308a\u3001\u8aa4\u3063\u3066\u30d5\u30a9\u30fc\u30e0\u306e\u591a\u91cd\u63d0\u51fa\u3092\u9632\u3050\u3068\u540c\u6642\u306b\u3001\u30d5\u30a9\u30fc\u30e0\u3067\u63d0\u51fa\u3055\u308c\u305f\u5024\u3092\u30c6\u30ad\u30b9\u30c8\u30b9\u30c8\u30ea\u30f3\u30b0\u306b\u5909\u66f4\u3057\u3001\u30a2\u30e9\u30fc\u30c8\u30dc\u30c3\u30af\u30b9\u5185\u3067\u305d\u308c\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2551\" src=\"http:\/\/tacchistudios.wpengine.com\/wp-content\/uploads\/2020\/03\/unformiked_form-1-1024x681.png\" alt=\"Form before refactoring to use Formik\" width=\"640\" height=\"426\" srcset=\"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/unformiked_form-1-1024x681.png 1024w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/unformiked_form-1-1440x957.png 1440w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/unformiked_form-1-860x572.png 860w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/unformiked_form-1.png 1504w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2549\" src=\"http:\/\/tacchistudios.wpengine.com\/wp-content\/uploads\/2020\/03\/unformiked_form_with_validation_errors-2-1024x681.png\" alt=\"Validation errors for unformiked form\" width=\"640\" height=\"426\" srcset=\"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/unformiked_form_with_validation_errors-2-1024x681.png 1024w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/unformiked_form_with_validation_errors-2-1440x957.png 1440w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/unformiked_form_with_validation_errors-2-860x572.png 860w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/unformiked_form_with_validation_errors-2.png 1504w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u4e0a\u8a18\u306e\u3082\u306e\u3082\u5b8c\u5168\u306b\u4f7f\u3048\u308b\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u3059\u3079\u3066\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30ed\u30b8\u30c3\u30af\u3092\u66f8\u304b\u306a\u304f\u3066\u306f\u306a\u3089\u305a\u3001\u7279\u306b\u5165\u308a\u7d44\u3093\u3060\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u304b\u306a\u308a\u306e\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u3088\u308a\u5c11\u306a\u3044\u30b3\u30fc\u30c9\u3067\u306f\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u697d\u306b\u306a\u308a\u3001\u958b\u767a\u30b9\u30d4\u30fc\u30c9\u3082\u4e0a\u304c\u308b\u305f\u3081\u3001\u5f0a\u793e\u3068\u3057\u3066\u3082\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3068\u3063\u3066\u3082\u3044\u3044\u3053\u3068\u3067\u3042\u308a\u307e\u3059\u3002\u6a5f\u80fd\u306b\u306f\u5f71\u97ff\u305b\u305a\u305d\u308c\u304c\u3067\u304d\u308b\u3068\u8a00\u3063\u305f\u3089\u3069\u3046\u3057\u307e\u3059\u304b\uff1f<\/p>\n<h2>Formik\u306e\u4f7f\u7528<\/h2>\n<p>React\u3067\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u5197\u9577\u3055\u3092\u7de9\u548c\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3044\u304f\u3064\u3082\u5b58\u5728\u3057\u307e\u3059\u304c\u3001<a href=\"https:\/\/www.npmtrends.com\/final-form-vs-formik-vs-informed-vs-react-form-vs-react-redux-form-vs-unform\">\u7279\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6570<\/a>\u3067\u3082\u5727\u5012\u7684\u306b\u4eba\u6c17\u306a\u306e\u306fFormik\u3067\u3059\u3002<a href=\"https:\/\/github.com\/jaredpalmer\/formik\">GitHub\u30ea\u30dd\u30b8\u30c8\u30ea<\/a>\u3067\u8ff0\u3079\u3089\u308c\u3066\u3044\u308b\u3088\u3046\u306b\u3001Formik\u306f\u5024\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3001\u63d0\u51fa\u306e\u6271\u3044\u306a\u3069\u306e\u30d5\u30a9\u30fc\u30e0\u306estate\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002Formik\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u7528\u3044\u3066\u30d5\u30a9\u30fc\u30e0\u3092\u30cd\u30b9\u30c8\u5316\u3057\u3001Formik\u3092\u5229\u7528\u3067\u304d\u3001\u5024\u3001\u30a8\u30e9\u30fc\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306eprops\u3092\u901a\u3057\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001Formik\u306f\u69d8\u3005\u306a\u30d0\u30ea\u30c7\u30fc\u30bf\u3068\u3082\u4f7f\u7528\u3067\u304d\u3001\u7279\u306b<a href=\"https:\/\/github.com\/jquense\/yup\">Yup<\/a>\u3067\u306f\u30d7\u30ed\u30bb\u30b9\u304c\u7c21\u7565\u5316\u3067\u304d\u307e\u3059\u3002\u81ea\u8eab\u306e\u30ab\u30b9\u30bf\u30e0\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3068\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u4ee3\u308f\u308a\u306bFormik\u3068Yup\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30d5\u30a9\u30fc\u30e0\u3092\u52d5\u304b\u3059\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3092\u4f55\u884c\u3082\u524a\u6e1b\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u91cd\u8981\u306a\u70b9\u3068\u3057\u3066\u3001\u3069\u306e\u3088\u3046\u306bFormik\u3067\u7c21\u7565\u5316\u3067\u304d\u308b\u304b\u898b\u308b\u305f\u3081\u306b\u4e0a\u306e\u4f8b\u306e\u30b3\u30fc\u30c9\u3092\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001Formik\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30d5\u30a9\u30fc\u30e0\u3092\u5165\u308c\u3001\u5165\u308c\u5b50\u69cb\u9020\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/17eeeb1fa120d781bd2321faa2965ba3.js\"><\/script><\/p>\n<p>\u521d\u671f\u5024\u3092<code>useState<\/code>\u3067\u5b9a\u7fa9\u3059\u308b\u4ee3\u308f\u308a\u306bFormik\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e<code>initialValues prop<\/code>\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/59e802dfc717a9cf9dd3e59d4d950f8c.js\"><\/script><\/p>\n<p>state\u7ba1\u7406\u306e\u4e00\u90e8\u3092Formik\u306b\u6307\u540d\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u30ab\u30b9\u30bf\u30e0\u306e<code>handleChange<\/code>\u3068<code>handleSubmit<\/code>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u53d6\u308a\u9664\u304d\u3001Formik\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u4ee3\u308f\u308a\u306b\u4f7f\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/ccff712b4388550fff1cd23081e75731.js\"><\/script><\/p>\n<p>\u3082\u3057\u3053\u308c\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u30c6\u30b9\u30c8\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u3082\u3046\u3059\u3067\u306b\u30b5\u30d6\u30df\u30c3\u30c8\u30dc\u30bf\u30f3\u304c\u52d5\u4f5c\u3057\u306a\u3044\u3053\u3068\u306b\u6c17\u3065\u304f\u3067\u3057\u3087\u3046\u3002\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u6b21\u306e\u30a8\u30e9\u30fc\u3092\u78ba\u8a8d\u3057\u307e\u3059:<\/p>\n<p><code class=\"javascript\"><\/code><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nUncaught (in promise) TypeError: _this.props.onSubmit is not a function.\r\n<\/pre>\n<p>Formik\u3067\u306f\u72ec\u81ea\u306e<code>onSubmit<\/code>\u306eprop\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306fFormik\u306e<code>handleSubmit<\/code>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3067\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002\u5143\u3005\u306e\u6a5f\u80fd\u3092\u518d\u73fe\u3059\u308b\u305f\u3081\u306b\u305d\u306eprop\u3092\u5229\u7528\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3059\u306a\u308f\u3061\u3001\u6587\u5b57\u5217\u5316\u3055\u308c\u305fJavaScript\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u30a2\u30e9\u30fc\u30c8\u30dc\u30c3\u30af\u30b9\u5185\u306b\u30d5\u30a9\u30fc\u30e0\u306e\u5024\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3067\u3059:<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/6ba8d0b956ff748f1f80950decac3f7a.js\"><\/script><\/p>\n<p>\u30d5\u30a9\u30fc\u30e0\u304c\u518d\u3073\u52d5\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306f\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u53d6\u308a\u639b\u304b\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u767a\u52d5\u3055\u305b\u308b\u305f\u3081\u306b<code>onBlur<\/code>\u30a4\u30d9\u30f3\u30c8\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u307e\u305a\u306f<code>handleBlur<\/code>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092Formik\u306e\u305d\u308c\u3067\u5165\u308c\u66ff\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/d89f57197e9338177f9efdc79d5d2381.js\"><\/script><\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u540d\u524d\u306e\u3064\u3044\u305f\u5165\u529b\u3054\u3068\u306bprop\u304c\u5f97\u3089\u308c\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u5165\u529b\u306e\u9078\u629e\u3092\u89e3\u9664(\u201ctouched\u201d) \u3057\u305f\u3068\u304d\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u6709\u52b9\u306a\u30c7\u30fc\u30bf\u3092\u5165\u529b\u305b\u305a\u306b\u5165\u529b\u304b\u3089\u30bf\u30d6\u3092\u96e2\u3057\u305f\u969b\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059 (\u305f\u3068\u3048\u3070\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u5f62\u5f0f\u304c\u6b63\u3057\u304f\u306a\u3044\u5834\u5408)\u3002\u3057\u304b\u3057\u3001\u305d\u308c\u306b\u884c\u304f\u524d\u306b<code>handleBlur<\/code>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u6d88\u3057\u305f\u3068\u304d\u306b\u3059\u3079\u3066\u306e\u30ab\u30b9\u30bf\u30e0\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u53d6\u308a\u9664\u304b\u308c\u305f\u306e\u3067\u3001Formik\u3068\u30d0\u30ea\u30c7\u30fc\u30bf\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u305d\u308c\u3089\u3092\u53d6\u308a\u66ff\u3048\u3001\u5358\u7d14\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Yup\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046<\/h2>\n<p>Yup\u306f<a href=\"https:\/\/jaredpalmer.com\">Formik\u306e\u5236\u4f5c\u8005<\/a>\u306b\u6c17\u306b\u5165\u3089\u308c\u3001\u305d\u306e\u5b9f\u88c5\u3092\u7c21\u5358\u306b\u3059\u308b\u305f\u3081\u5f7c\u306f<a href=\"https:\/\/jaredpalmer.com\/formik\/docs\/guides\/validation#validationschema\"><code>validationSchema<\/code><\/a>\u3068\u3044\u3046\u7279\u5225\u306aprop\u3092\u5236\u4f5c\u3057\u307e\u3057\u305f\u3002\u5165\u529b\u3068\u524d\u8ff0\u3057\u305fprop\u306b\u5024\u3092\u6e21\u3059\u305f\u3081\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u3068Yup\u30b9\u30ad\u30fc\u30de\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3067Yup\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002(Yup\u306e\u30b9\u30ad\u30fc\u30de\u30aa\u30d6\u30b8\u30a7\u30c8\u3092\u5b9a\u7fa9\u3059\u308b\u969b\u306b\u6ca2\u5c71\u306e\u9078\u629e\u80a2\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u5358\u7d14\u5316\u306e\u305f\u3081\u5143\u306e\u30d5\u30a9\u30fc\u30e0\u306b\u985e\u4f3c\u3059\u308b\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3060\u3051\u3092\u518d\u73fe\u3057\u307e\u3057\u305f\u3002)<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/a43bc489ab4998f798202c611a8e88d5.js\"><\/script><\/p>\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u524d\u306b\u5165\u529b\u30a8\u30ea\u30a2\u306b\u30ab\u30fc\u30bd\u30eb\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u3001\u5024\u3092\u5165\u529b\u4e2d\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u305f\u308a\u3001\u30a4\u30f3\u30d7\u30c3\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u304b\u3089\u96e2\u308c\u308b\u3068\u8aa4\u3063\u3066\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\uff12\u3064\u306e\u5165\u529b\u306b\u8868\u793a\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3067\u3059\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/8033537652a77a0aea40cbbe1587d60a.js\"><\/script><\/p>\n<p>\u30a8\u30e9\u30fc\u3092\u628a\u63e1\u3059\u308b\u305f\u3081\u306bFormik\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001<code>onSubmit<\/code>\u3092\u66f4\u65b0\u3057\u3066<code>isSubmitting<\/code>\u3082\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u306f\u3001<code>useState<\/code>\u3078\u306e\u3059\u3079\u3066\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u53d6\u308a\u9664\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/608da08222819151f875b5a9709d3f7f.js\"><\/script><\/p>\n<p>\u6700\u5f8c\u306b\u3001Formik\u306ehelper\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3044\u3055\u3089\u306b\u30b3\u30fc\u30c9\u3092\u304d\u308c\u3044\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306ehelper\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><code>Field<\/code>\u00a0 \u5165\u529b\u540d\u30a2\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\u306b\u57fa\u3065\u3044\u305f\u9069\u5207\u306a<code>handleChange<\/code>\u3001<code>handeBlur<\/code>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u53d7\u3051\u53d6\u308b<\/li>\n<li><code>ErrorMessage<\/code> \u5165\u529b\u30a8\u30ea\u30a2\u306b\u30ab\u30fc\u30bd\u30eb\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3001\u30a8\u30e9\u30fc\u304c\u3042\u308b\u304b\u306e\u4e21\u65b9\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/li>\n<li><code>Form<\/code>\u00a0<code>onSubmit<\/code>\u3092\u53d7\u3051\u53d6\u308b<\/li>\n<\/ul>\n<p><script src=\"https:\/\/gist.github.com\/ianbayne\/6c80e44c2d36c8b1f15d7526aa91db79.js\"><\/script><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2547\" src=\"http:\/\/tacchistudios.wpengine.com\/wp-content\/uploads\/2020\/03\/formiked_form-1-1024x681.png\" alt=\"Form refactored to use Formik\" width=\"640\" height=\"426\" srcset=\"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/formiked_form-1-1024x681.png 1024w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/formiked_form-1-1440x957.png 1440w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/formiked_form-1-860x572.png 860w, https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2020\/03\/formiked_form-1.png 1504w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3053\u308c\u3067\u7c21\u5358\u306a\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u306e\u30a8\u30af\u30b5\u30b5\u30a4\u30ba\u306f\u7d42\u308f\u308a\u306b\u306a\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306f100\u884c\u3061\u3087\u3063\u3068\u304b\u3089\u307b\u3068\u3093\u3069\u534a\u5206\u306e60\u884c\u306b\u307e\u3067\u6e1b\u308a\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u8aad\u307f\u3084\u3059\u3055\u3092\u640d\u306a\u308f\u305a\u306b\u305d\u308c\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u5b9f\u969b\u3001\u8aad\u307f\u3084\u3059\u304f\u306a\u308a\u3001\u77ed\u304f\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u30b3\u30fc\u30c9\u3092<a href=\"https:\/\/quoteinvestigator.com\/2011\/05\/13\/einstein-simple\/\">\u3067\u304d\u308b\u3060\u3051\u30b7\u30f3\u30d7\u30eb<\/a>\u306b\u4fdd\u3064\u3053\u3068\u3067\u958b\u767a\u30b9\u30d4\u30fc\u30c9\u3092\u4e0a\u3052\u3001\u4fdd\u5b88\u6027\u304c\u4e0a\u304c\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4e0a\u306e\u4f8b\u306f\u304b\u306a\u308a\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u304c\u3001Formik\u304b\u3089\u5f97\u3089\u308c\u308b\u30e1\u30ea\u30c3\u30c8\u3092\u3054\u7406\u89e3\u3044\u305f\u3060\u3051\u305f\u3089\u5e78\u3044\u3067\u3059\u3002React\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u751f\u3058\u308b\u3059\u3079\u3066\u306e\u30d5\u30a9\u30fc\u30e0\u95a2\u9023\u306e\u554f\u984c\u306b\u6b63\u3057\u3044\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u9762\u5012\u3092\u6e1b\u3089\u3059\u5f79\u306b\u7acb\u3061\u307e\u3059\u3002\u307e\u3060\u8a66\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3089\u305c\u3072Formik\u3092\u6b21\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p lang=ja>\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2\u8f09\u7b49\u3001\u5f0a\u793e\u3067\u5236\u4f5c\u3057\u305f\u30a2\u30d7\u30ea\u3067\u3082\u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u3067\u4f7f\u3063\u3066\u304d\u307e\u3057\u305f<\/p>\n","protected":false},"author":11,"featured_media":3351,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[26],"tags":[84,85],"class_list":["post-2597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","tag-react-ja","tag-react-native-ja"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b - TACCHI\u682a\u5f0f\u4f1a\u793e<\/title>\n<meta name=\"description\" content=\"\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2\u8f09\u7b49\u3001\u5f0a\u793e\u3067\u5236\u4f5c\u3057\u305f\u30a2\u30d7\u30ea\u3067\u3082\u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u3067\u4f7f\u3063\u3066\u304d\u307e\u3057\u305f\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b - TACCHI\u682a\u5f0f\u4f1a\u793e\" \/>\n<meta property=\"og:description\" content=\"\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/\" \/>\n<meta property=\"og:site_name\" content=\"TACCHI\u682a\u5f0f\u4f1a\u793e\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tacchistudios\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-01T02:17:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-22T03:58:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2017\/01\/building-better-react-forms-with-formik.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1098\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b - TACCHI\u682a\u5f0f\u4f1a\u793e\" \/>\n<meta name=\"twitter:description\" content=\"\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2017\/01\/building-better-react-forms-with-formik.png\" \/>\n<meta name=\"twitter:creator\" content=\"@ian@tacchistudios.com\" \/>\n<meta name=\"twitter:site\" content=\"@tacchistudios\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ian\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/\"},\"author\":{\"name\":\"Ian\",\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/#\\\/schema\\\/person\\\/3878d42c094a22a5207683c459062239\"},\"headline\":\"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\",\"datePublished\":\"2020-06-01T02:17:13+00:00\",\"dateModified\":\"2023-08-22T03:58:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/\"},\"wordCount\":72,\"image\":{\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.tacchistudios.com\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/building-better-react-forms-with-formik.png\",\"keywords\":[\"React\",\"React Native\"],\"articleSection\":[\"\u8a18\u4e8b\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/\",\"url\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/\",\"name\":\"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b - TACCHI\u682a\u5f0f\u4f1a\u793e\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.tacchistudios.com\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/building-better-react-forms-with-formik.png\",\"datePublished\":\"2020-06-01T02:17:13+00:00\",\"dateModified\":\"2023-08-22T03:58:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/#\\\/schema\\\/person\\\/3878d42c094a22a5207683c459062239\"},\"description\":\"\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2\u8f09\u7b49\u3001\u5f0a\u793e\u3067\u5236\u4f5c\u3057\u305f\u30a2\u30d7\u30ea\u3067\u3082\u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u3067\u4f7f\u3063\u3066\u304d\u307e\u3057\u305f\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.tacchistudios.com\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/building-better-react-forms-with-formik.png\",\"contentUrl\":\"https:\\\/\\\/www.tacchistudios.com\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/building-better-react-forms-with-formik.png\",\"width\":2560,\"height\":1098},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/articles\\\/building-better-react-forms-with-formik\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/#website\",\"url\":\"https:\\\/\\\/www.tacchistudios.com\\\/\",\"name\":\"TACCHI\u682a\u5f0f\u4f1a\u793e\",\"description\":\"Web &amp; mobile app design &amp; development\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.tacchistudios.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/#\\\/schema\\\/person\\\/3878d42c094a22a5207683c459062239\",\"name\":\"Ian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.tacchistudios.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/moi.png\",\"url\":\"https:\\\/\\\/www.tacchistudios.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/moi.png\",\"contentUrl\":\"https:\\\/\\\/www.tacchistudios.com\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/moi.png\",\"caption\":\"Ian\"},\"description\":\"Ian grew up in the Pacific Northwest before moving to Japan. After 17+ years, and making the progression from English teacher to project manager to translator, and now to web and mobile app developer, it's safe to say he's put down roots. In his free time he enjoys cooking, reading, playing dodgeball, drinking an unhealthy amount of coffee, and feeling smugly superior about his taste in movies.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/ian@tacchistudios.com\"],\"url\":\"https:\\\/\\\/www.tacchistudios.com\\\/ja\\\/author\\\/ian\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b - TACCHI\u682a\u5f0f\u4f1a\u793e","description":"\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2\u8f09\u7b49\u3001\u5f0a\u793e\u3067\u5236\u4f5c\u3057\u305f\u30a2\u30d7\u30ea\u3067\u3082\u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u3067\u4f7f\u3063\u3066\u304d\u307e\u3057\u305f\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/","og_locale":"ja_JP","og_type":"article","og_title":"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b - TACCHI\u682a\u5f0f\u4f1a\u793e","og_description":"\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2","og_url":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/","og_site_name":"TACCHI\u682a\u5f0f\u4f1a\u793e","article_publisher":"https:\/\/www.facebook.com\/tacchistudios\/","article_published_time":"2020-06-01T02:17:13+00:00","article_modified_time":"2023-08-22T03:58:21+00:00","og_image":[{"width":2560,"height":1098,"url":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2017\/01\/building-better-react-forms-with-formik.png","type":"image\/png"}],"author":"Ian","twitter_card":"summary_large_image","twitter_title":"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b - TACCHI\u682a\u5f0f\u4f1a\u793e","twitter_description":"\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2","twitter_image":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2017\/01\/building-better-react-forms-with-formik.png","twitter_creator":"@ian@tacchistudios.com","twitter_site":"@tacchistudios","twitter_misc":{"\u57f7\u7b46\u8005":"Ian","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/#article","isPartOf":{"@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/"},"author":{"name":"Ian","@id":"https:\/\/www.tacchistudios.com\/#\/schema\/person\/3878d42c094a22a5207683c459062239"},"headline":"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b","datePublished":"2020-06-01T02:17:13+00:00","dateModified":"2023-08-22T03:58:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/"},"wordCount":72,"image":{"@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2017\/01\/building-better-react-forms-with-formik.png","keywords":["React","React Native"],"articleSection":["\u8a18\u4e8b"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/","url":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/","name":"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b - TACCHI\u682a\u5f0f\u4f1a\u793e","isPartOf":{"@id":"https:\/\/www.tacchistudios.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/#primaryimage"},"image":{"@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2017\/01\/building-better-react-forms-with-formik.png","datePublished":"2020-06-01T02:17:13+00:00","dateModified":"2023-08-22T03:58:21+00:00","author":{"@id":"https:\/\/www.tacchistudios.com\/#\/schema\/person\/3878d42c094a22a5207683c459062239"},"description":"\u30e2\u30d0\u30a4\u30eb\u3068Web\u3067\u8907\u96d1\u306a\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u30a2\u30ab\u30a6\u30f3\u30c8\u3084\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u4f5c\u6210\u30d5\u30ed\u30fc\u3084\u3001E\u30b3\u30de\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3001\u6c42\u4eba\u5e83\u544a\u306e\u63b2\u8f09\u7b49\u3001\u5f0a\u793e\u3067\u5236\u4f5c\u3057\u305f\u30a2\u30d7\u30ea\u3067\u3082\u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u3067\u4f7f\u3063\u3066\u304d\u307e\u3057\u305f\u3002","breadcrumb":{"@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/#primaryimage","url":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2017\/01\/building-better-react-forms-with-formik.png","contentUrl":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2017\/01\/building-better-react-forms-with-formik.png","width":2560,"height":1098},{"@type":"BreadcrumbList","@id":"https:\/\/www.tacchistudios.com\/ja\/articles\/building-better-react-forms-with-formik\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tacchistudios.com\/ja\/"},{"@type":"ListItem","position":2,"name":"Formik\u3067\u3088\u308a\u3088\u3044React\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u69cb\u7bc9\u3059\u308b"}]},{"@type":"WebSite","@id":"https:\/\/www.tacchistudios.com\/#website","url":"https:\/\/www.tacchistudios.com\/","name":"TACCHI\u682a\u5f0f\u4f1a\u793e","description":"Web &amp; mobile app design &amp; development","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tacchistudios.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.tacchistudios.com\/#\/schema\/person\/3878d42c094a22a5207683c459062239","name":"Ian","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2019\/11\/moi.png","url":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2019\/11\/moi.png","contentUrl":"https:\/\/www.tacchistudios.com\/wp-content\/uploads\/2019\/11\/moi.png","caption":"Ian"},"description":"Ian grew up in the Pacific Northwest before moving to Japan. After 17+ years, and making the progression from English teacher to project manager to translator, and now to web and mobile app developer, it's safe to say he's put down roots. In his free time he enjoys cooking, reading, playing dodgeball, drinking an unhealthy amount of coffee, and feeling smugly superior about his taste in movies.","sameAs":["https:\/\/x.com\/ian@tacchistudios.com"],"url":"https:\/\/www.tacchistudios.com\/ja\/author\/ian\/"}]}},"_links":{"self":[{"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/posts\/2597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/comments?post=2597"}],"version-history":[{"count":0,"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/posts\/2597\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/media\/3351"}],"wp:attachment":[{"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/media?parent=2597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/categories?post=2597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tacchistudios.com\/ja\/wp-json\/wp\/v2\/tags?post=2597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}