{"id":30920,"date":"2025-01-18T08:14:55","date_gmt":"2025-01-18T16:14:55","guid":{"rendered":"https:\/\/www.uxpin.com\/studio\/?p=30920"},"modified":"2025-03-03T23:54:03","modified_gmt":"2025-03-04T07:54:03","slug":"react-design-patterns-ja","status":"publish","type":"post","link":"https:\/\/www.uxpin.com\/studio\/jp\/blog-jp\/react-design-patterns-ja\/","title":{"rendered":"\uff12\uff10\uff12\uff15\u5e74\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d React \u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u304a\u3059\u3059\u3081"},"content":{"rendered":"\r\n
\"\u77e5\u3063\u3066\u304a\u304d\u305f\u3044React\u306e<\/figure>\r\n\r\n\r\n\r\n

React \u306e\u7d76\u5927\u306a\u4eba\u6c17\u3068\u5b9f\u7528\u6027\u306f\u5426\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002\u9577\u3044\u9593\u3001\u307b\u3068\u3093\u3069\u306eWeb\u30c7\u30b6\u30a4\u30f3\u306f CSS\u3001HTML\u3001JavaScript \u3067\u69cb\u7bc9\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001<\/span>React\u306f<\/span>\u305d\u306e\u4f7f\u3044\u3084\u3059\u3055<\/span><\/a>\u3067\u3001\u591a\u304f\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u304b\u3089\u611b\u3055\u308c\u3066\u3044\u307e\u3059<\/span>\u3002React\u306e\u6700\u3082\u9b45\u529b\u7684\u306a\u6a5f\u80fd\u3068\u3057\u3066\u306f\u3001\u518d\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3001\u512a\u308c\u305f\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u3001\u5e83\u7bc4\u306a\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0<\/strong>\u306a\u3069\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/span><\/p>\r\n

\u305d\u3057\u3066\u3001DOM\u3092\u76f4\u63a5\u64cd\u4f5c\u3059\u308b\u3068\u3044\u3046\u5f93\u6765\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306e\u4ee3\u308f\u308a\u306b\u3001React \u306f\u4eee\u60f3 DOM \u30b3\u30f3\u30bb\u30d7\u30c8\u3068\u3044\u3046\u5f62\u3067\u6709\u7528\u306a\u62bd\u8c61\u5316\u30ec\u30d9\u30eb\u3092\u5c0e\u5165\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\r\n

\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u6280\u8853\u5927\u624b\u3067\u3042\u308b Facebook\u306eReact\u958b\u767a\u8005\u305f\u3061\u306b\u3088\u3063\u3066\u7a4d\u6975\u7684\u306b\u958b\u767a\u304a\u3088\u3073\u4fdd\u5168\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u4ed6\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u3088\u308a\u3082\u305a\u3063\u3068\u512a\u4f4d\u306b\u7acb\u3063\u3066\u304a\u308a\u3001JavaScript \u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306e\u5927\u52e2\u306e\u8ca2\u732e\u8005\u3082\u3001React\u6539\u5584\u306b\u8ca2\u732e\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\r\n

\u3053\u306e\u3088\u3046\u306a\u8981\u56e0\u306e\u304a\u304b\u3052\u3067\u3001React\u306f\u3001\u5e38\u306b\u65b0\u3057\u3044\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u767b\u5834\u3057\u3066\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u306e\u9593\u3067\u8a55\u4fa1\u3092\u7af6\u3063\u3066\u3044\u308b\u306b\u3082\u95a2\u308f\u3089\u305a\u3001\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u306e\u9593\u3067\u5909\u308f\u3089\u305a\u4eba\u6c17\u3067\u3059\u3002<\/span><\/p>\r\n

\r\n\r\n<\/p>\r\n

\"code<\/figure>\r\n

React.js \u306b\u306f\u6570\u591a\u304f\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u304c\u5b58\u5728\u3057\u307e\u3059\u304c\u3001\u672c\u8a18\u4e8b\u3067\u306f\u3001Web \u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u305c\u3072\u77e5\u3063\u3066\u304a\u304d\u305f\u3044\u3001React\u306e\u304a\u3059\u3059\u3081\u30d1\u30bf\u30fc\u30f3\u3092\u3044\u304f\u3064\u304b\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/span><\/p>\r\n

Git \u30ec\u30dd\u30b8\u30c8\u30ea\u3001Storybook\u3001\u307e\u305f\u306f npm \u304b\u3089\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u69cb\u7bc9\u3057\u307e\u3057\u3087\u3046\u3002\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30c7\u30b6\u30a4\u30f3\u30a8\u30c7\u30a3\u30bf\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308c\u3070\u3001\u30c7\u30b6\u30a4\u30ca\u30fc\u306a\u3057\u3067\u3082\u9b45\u529b\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/span>\u3053\u3061\u3089<\/span><\/a>\u304b\u3089 UXPin Merge \u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3001\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\r\n

React \u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u5f93\u3046\u3079\u304d\u7406\u7531<\/b><\/h2>\r\n

\u307e\u305a\u3001\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u304c\u679c\u305f\u3059\u5f79\u5272\u3092\u7c21\u5358\u306b\u632f\u308a\u8fd4\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3068\u306f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u3088\u304f\u8d77\u3053\u308b\u554f\u984c\u306b\u5bfe\u3059\u308b\u518d\u73fe\u53ef\u80fd\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\r\n

\u305d\u308c\u306f\u4e0e\u3048\u3089\u308c\u305f\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6a5f\u80fd\u3092\u69cb\u7bc9\u3067\u304d\u308b\u57fa\u672c\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/span><\/p>\r\n

\u3061\u306a\u307f\u306b\u300c\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u300d\u3092\u300c<\/span>\u30c7\u30b6\u30a4\u30f3\u30b7\u30b9\u30c6\u30e0<\/span><\/a>\u300d\u3068\u6df7\u540c\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002\u30c7\u30b6\u30a4\u30f3\u30b7\u30b9\u30c6\u30e0\u306b\u3064\u3044\u3066\u306f\u5225\u306e\u8a18\u4e8b\u3067\u304a\u8a71\u3057\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\r\n

\r\n\r\n<\/p>\r\n

\r\n\r\n<\/p>\r\n\r\n\r\n\r\n\r\n\r\n

\"designops<\/figure>\r\n

\r\n\r\n<\/p>\r\n

\r\n\r\n<\/p>\r\n

\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3067\u3001\u958b\u767a\u30d7\u30ed\u30bb\u30b9\u306e\u30b9\u30d4\u30fc\u30c9\u304c\u4e0a\u304c\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30b3\u30fc\u30c9\u306e\u89e3\u8aad\u3084\u7dad\u6301\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\r\n

\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u4e00\u822c\u7684\u306a\u4f8b\u3068\u3057\u3066\u306f\u3001Singleton\u30d1\u30bf\u30fc\u30f3\u3084 Gang-of-Four\u30d1\u30bf\u30fc\u30f3\u306a\u3069\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/span><\/p>\r\n

\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u306b\u304a\u3044\u3066\u3001\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\uff12\u3064\u306e\u4e00\u822c\u7684\u306a\u5f79\u5272\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\r\n