{"id":239,"date":"2016-01-25T12:00:00","date_gmt":"2016-01-25T03:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/01\/25\/read-virtual-dom-library-deku"},"modified":"2022-10-28T21:38:40","modified_gmt":"2022-10-28T12:38:40","slug":"read-virtual-dom-library-deku","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/01\/25\/read-virtual-dom-library-deku\/","title":{"rendered":"\u4eee\u60f3DOM\u30e9\u30a4\u30d6\u30e9\u30ea\u306edeku\u3092\u8aad\u3093\u3060\u8a71"},"content":{"rendered":"
\u82f1\u8a9e\u306e\u52c9\u5f37\u3092\u3059\u308b\u305e\u3068\u610f\u6c17\u8fbc\u307f\u3001\u5b57\u5e55\u306a\u3057\u3067\u52d5\u753b\u3092\u89b3\u59cb\u3081\u305f\u3068\u3053\u308d\u30d5\u30e9\u30f3\u30b9\u304c\u821e\u53f0\u306e\u30c9\u30ad\u30e5\u30f3\u30bf\u30ea\u30fc\u3092\u89b3\u3066\u3044\u305f\u3053\u3068\u306b\u6c17\u4ed8\u3044\u305f\u5c0f\u98fc\u3067\u3059\u3002<\/p>\n
\u305f\u3060\u3001\u5358\u306a\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u3044\u308b\u3068\u601d\u308f\u306c\u843d\u3068\u3057\u7a74\u306b\u5165\u308a\u8fbc\u307e\u306a\u3044\u3068\u3082\u9650\u308a\u307e\u305b\u3093\u3057\u3001 \u3055\u3066\u3001 \u3044\u304f\u3064\u304b\u5b9f\u88c5\u306e\u6709\u308b\u4e2d\u3067\u3001\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u304c\u5c0f\u3055\u304f\u63d0\u4f9b\u3059\u308bAPI\u304c\u30b7\u30f3\u30d7\u30eb\u3067\u3042\u308b\u3088\u3046\u306b\u610f\u56f3\u3055\u308c\u305f deku\u306egithub\u30ec\u30dd\u30b8\u30c8\u30ea<\/a> \u306a\u304a\u3001\u672c\u7a3f\u57f7\u7b46\u6642\u70b9\u306e\u6700\u65b0\u516c\u958b\u7248\u3067\u3042\u308b \u6163\u7fd2\u7684\u306b\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u306b\u306f\u3001\u5916\u90e8\u306b\u516c\u958b\u3059\u308bReact.js<\/code>\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u306b\u3042\u305f\u308a\u3001\u305d\u306e\u5185\u90e8\u5b9f\u88c5\u306b\u3064\u3044\u3066\u7406\u89e3\u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u30b1\u30fc\u30b9\u306f\u5fc5\u305a\u3057\u3082\u591a\u304f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002
\n\u7279\u306bReact.js<\/code>\u306e\u60c5\u5831\u304c\u3042\u3075\u308c\u3066\u3044\u308b\u3088\u3046\u306a\u6628\u4eca\u3067\u306f\u3001\u5185\u90e8\u5b9f\u88c5\u3092\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3088\u3046\u3068\u3059\u308b\u3053\u3068\u304c\u76f4\u63a5\u7684\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u69cb\u7bc9\u306e\u751f\u7523\u6027\u306b\u5bc4\u4e0e\u3059\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n
API<\/code>\u306e\u5909\u66f4\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u3082\u552f\u3005\u8afe\u3005\u3068\u958b\u767a\u5074\u306e\u65b9\u91dd\u306b\u5023\u3046\u3053\u3068\u3057\u304b\u3067\u304d\u307e\u305b\u3093\u3002
\n\u3082\u3061\u308d\u3093\u305d\u308c\u306f\u5185\u90e8\u5b9f\u88c5\u3092\u7406\u89e3\u3057\u3066\u3044\u305f\u3068\u3053\u308d\u3067\u5927\u304d\u304f\u4e8b\u60c5\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u304c\u3001\u5c11\u306a\u304f\u3068\u3082\u81ea\u5206\u306a\u308a\u306e\u7d0d\u5f97\u306e\u3044\u304f\u7406\u89e3\u306f\u4f5c\u308c\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3057\u3001\u3082\u3057\u81ea\u5206\u306e\u72b6\u6cc1\u306b\u305d\u3050\u308f\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u5225\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u9078\u5b9a\u3059\u308b\u3088\u3046\u306a\u9078\u629e\u80a2\u3082\u9078\u3073\u5f97\u308b\u3068\u601d\u3044\u307e\u3059\u3002
\n\u305d\u306e\u610f\u5473\u3067(React.js<\/code>\u306b\u9650\u3063\u305f\u8a71\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c)\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5185\u90e8\u5b9f\u88c5\u3092\u304d\u3061\u3093\u3068\u7406\u89e3\u3057\u3066\u304a\u304f\u3053\u3068\u306f\u3001\u3068\u3066\u3082\u5927\u4e8b\u3067\u3001\u304b\u3064\u5b89\u5fc3\u3067\u304d\u308b\u958b\u767a\u74b0\u5883\u306b\u3082\u3064\u306a\u304c\u308b\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n
React.js<\/code>\u306e\u6d41\u884c\u3068\u5171\u306b\u3001\u305d\u306e\u672c\u8cea\u3067\u3042\u308b\u4eee\u60f3DOM\u306e\u5b9f\u88c5\u304c\u3044\u304f\u3064\u3082\u51fa\u3066\u304d\u307e\u3057\u305f\u3002
\n\u305d\u3053\u3067\u672c\u7a3f\u3067\u306f\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u304c\u5927\u304d\u304f\u8aad\u307f\u4e0b\u3059\u3053\u3068\u304c\u96e3\u3057\u3044React.js<\/code>\u306e\u524d\u306b\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u4eee\u60f3DOM\u5b9f\u88c5\u3092\u8aad\u3093\u3067\u307f\u3066\u3001
\nReact.js<\/code>\u304c\u672c\u8cea\u7684\u306b\u306f\u3069\u3093\u306a\u51e6\u7406\u3092\u62c5\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308b\u304b\u3092\u7406\u89e3\u3059\u308b\u4e00\u52a9\u3068\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
deku<\/code>\u3092\u9078\u3073\u307e\u3057\u305f\u3002<\/p>\n
\ndeku\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a><\/p>\n2.0.0-rc7<\/code>\u3092\u5bfe\u8c61\u3068\u3057\u3066\u3044\u307e\u3059\u3002
\n\u975e\u5e38\u306b\u6d3b\u767a\u306a\u958b\u767a\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u306e\u3067\u3001\u672c\u7a3f\u516c\u958b\u6642\u70b9\u30672.0.0-rc13<\/code>\u306b\u307e\u3067\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306b\u7559\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002
\n\u307e\u305f\u3001\u3053\u3061\u3089\u306f\u30e1\u30b8\u30e3\u30fc\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u7248\u3067\u3059\u306e\u3067\u3001\u904e\u53bb\u306b\u516c\u958b\u3055\u308c\u305fdeku<\/code>\u306e\u8a18\u4e8b\u3068\u306f
API<\/code>\u304c\u7570\u306a\u3063\u3066\u3044\u308b\u30b1\u30fc\u30b9\u304c\u591a\u3005\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
npm\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u3080\u524d\u306b<\/h2>\n
deku<\/code>\u3084
React.js<\/code>\u3092\u59cb\u3081\u3068\u3059\u308b
npm<\/code>\u3067\u914d\u5e03\u3055\u308c\u3066\u3044\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001
require<\/code>\u3055\u308c\u308b\u3068
package.json<\/code>\u306e
main<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u8a18\u8ff0\u3055\u308c\u305f\u30d1\u30b9\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002
\nThe main field is a module ID that is the primary entry point to your program<\/a><\/p>\n"main": "lib\/index.js",<\/code><\/pre>\n
API<\/code>\u3092\u6301\u3063\u305f\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u3060\u3051\u306b\u3057\u3066\u3044\u308b\u5834\u5408\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n
\/\/ deku\/src\/index.js\nimport element from '.\/element'\nimport string from '.\/string'\nimport dom from '.\/dom'\n\nexport {\n element,\n string,\n dom\n}<\/code><\/pre>\n