{"id":636,"date":"2020-05-18T09:00:00","date_gmt":"2020-05-18T00:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2020\/05\/18\/gatsby-social-button"},"modified":"2020-05-18T09:00:00","modified_gmt":"2020-05-18T00:00:00","slug":"gatsby-social-button","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2020\/05\/18\/gatsby-social-button\/","title":{"rendered":"Gatsby \u30bd\u30fc\u30b7\u30e3\u30eb\u30dc\u30bf\u30f3\u3092\u753b\u9762\u9077\u79fb\u6642\u306b\u3082\u6b63\u3057\u304f\u8868\u793a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"
\u571f\u5c45\u3067\u3059\u3002\u65b0\u578b\u30b3\u30ed\u30ca\u30a6\u30a4\u30eb\u30b9\u306b\u3088\u308b\u6628\u4eca\u306e\u4e8b\u60c5\u3082\u3042\u3063\u3066\u3001\u5143\u3005\u3042\u307e\u308a\u5916\u51fa\u3057\u306a\u3044\u65b9\u3067\u3042\u3063\u305f\u6027\u8cea\u306b\u3055\u3089\u306b\u62cd\u8eca\u304c\u639b\u304b\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u306b\u8d64\u3061\u3083\u3093\u306e\u304a\u4e16\u8a71\u3067\u3042\u307e\u308a\u624b\u5143\u304c\u7a7a\u304b\u306a\u3044\u3053\u3068\u3082\u52a0\u3063\u3066\u3001\u6620\u50cf\u4f5c\u54c1\u3084\u30c6\u30ec\u30d3\u306e\u8996\u8074\u3092\u3059\u308b\u3053\u3068\u304c\u5897\u3048\u307e\u3057\u305f\u3002\u30c9\u30e9\u30de\u3068\u304b\u3042\u3093\u307e\u308a\u89b3\u306a\u304b\u3063\u305f\u3051\u3069\u3001\u3051\u3063\u3053\u3046\u9762\u767d\u3044\u306a\u3002\u3002\u3002\uff08\u3044\u307e\u3055\u3089\uff09\u3068\u601d\u3044\u306a\u304c\u3089\u306e\u3093\u3073\u308a\u904e\u3054\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n
\u5404\u7a2e\u516c\u5f0f (FaceBook\u306f\u3053\u3061\u3089)<\/a>\u304b\u3089\u30b7\u30a7\u30a2\u30dc\u30bf\u30f3\u306e\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3057\u3066\u3001\u5229\u7528\u3059\u308b\u3060\u3051\u3002\u3002\u304b\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001<\/p>\n <\/p>\n \u3042\u308c\uff1f\u3000\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306f\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001Twitter\u3068Facebook\u304c\u5358\u306a\u308b\u30ea\u30f3\u30af\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n \u3069\u3046\u3082\u521d\u671f\u8868\u793a\u6642\u3084\u3001\u4ed6\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3057\u305f\u3068\u304d\u306b\u306f\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3057\u305f\u3002 \u203btwitter, facebook\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u8aad\u307f\u8fbc\u307f\/\u518d\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n \u3053\u308c\u3067\u3001\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u9077\u79fb\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3001\u30bd\u30fc\u30b7\u30e3\u30eb\u30dc\u30bf\u30f3\u306b\u9077\u79fb\u3057\u305f\u3053\u3068\u3092\u4f1d\u3048\u3066\u3042\u3052\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3088\u3046\u3067\u3059\u3002 https:\/\/www.gatsbyjs.org\/packages\/gatsby-plugin-react-helmet\/<\/a> \u203bscript\u306e\u8ffd\u52a0\u306b\u5229\u7528 \u571f\u5c45\u3067\u3059\u3002\u65b0\u578b\u30b3\u30ed\u30ca\u30a6\u30a4\u30eb\u30b9\u306b\u3088\u308b\u6628\u4eca\u306e\u4e8b\u60c5\u3082\u3042\u3063\u3066\u3001\u5143\u3005\u3042\u307e\u308a\u5916\u51fa\u3057\u306a\u3044\u65b9\u3067\u3042\u3063\u305f\u6027\u8cea\u306b\u3055\u3089\u306b\u62cd\u8eca\u304c\u639b\u304b\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u306b\u8d64\u3061\u3083\u3093\u306e\u304a\u4e16\u8a71\u3067\u3042\u307e\u308a\u624b\u5143\u304c\u7a7a\u304b\u306a\u3044\u3053\u3068\u3082\u52a0\u3063\u3066\u3001\u6620\u50cf\u4f5c\u54c1\u3084\u30c6\u30ec\u30d3\u306e\u8996\u8074\u3092\u3059\u308b\u3053\u3068\u304c\u5897\u3048\u307e\u3057\u305f\u3002\u30c9\u30e9\u30de\u3068\u304b\u3042\u3093\u307e\u308a\u89b3\u306a\u304b\u3063\u305f\u3051\u3069\u3001\u3051\u3063\u3053\u3046\u9762\u767d\u3044\u306a\u3002\u3002\u3002\uff08\u3044\u307e\u3055\u3089\uff09\u3068\u601d\u3044\u306a\u304c\u3089\u306e\u3093\u3073\u308a\u904e\u3054\u3057\u3066\u3044\u307e\u3059\u3002 Gatsby\u3067\u30bd\u30fc\u30b7\u30e3\u30eb\u30dc\u30bf\u30f3\u3092\u8ffd\u52a0\u3059\u308b \u5404\u7a2e\u516c\u5f0f (FaceBook\u306f […]<\/p>\n","protected":false},"author":11,"featured_media":826,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/636"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=636"}],"version-history":[{"count":0,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/636\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media\/826"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3068\u3001\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b<\/h3>\n
\n\u305d\u3053\u3067\u3001\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n const SocialShare = ({ }) => {\n useEffect(() => {\n if (window.twttr) window.twttr.widgets.load();\n if (window.FB) window.FB.XFBML.parse();\n }, []);\n ...<\/code><\/pre>\n
\n<\/p>\n
\nSPA\u3067\u306f\u5272\u3068\u3088\u304f\u3084\u308b\u3084\u3064\u307f\u305f\u3044\u3067\u3059\u306d\u3002\u3002\u52c9\u5f37\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\u53c2\u8003<\/h3>\n
\nhttps:\/\/www.designwedge.com\/page\/guidebook-spa-smo-1\/<\/a>
\nhttps:\/\/developer.twitter.com\/en\/docs\/twitter-for-websites\/javascript-api\/guides\/scripting-loading-and-initialization<\/a>
\nhttps:\/\/developers.facebook.com\/docs\/reference\/javascript\/FB.XFBML.parse\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"