{"id":44507,"date":"2023-12-13T15:32:57","date_gmt":"2023-12-13T06:32:57","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=44507&#038;post_type=knowledgebase&#038;preview_id=44507"},"modified":"2025-10-02T04:45:34","modified_gmt":"2025-10-01T19:45:34","slug":"react-must-be-in-scope-when-using-jsx","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/","title":{"rendered":"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f"},"content":{"rendered":"<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-react-js\/\">React<\/a>\u3092\u4f7f\u3063\u305f\u4f5c\u696d\u306f\u6642\u306b\u8907\u96d1\u3067\u3059\u304c\u3001\u7406\u89e3\u3057\u96e3\u3044\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u305f\u6642\u306b\u306f\u306a\u304a\u306e\u3053\u3068\u3002<\/p>\n<p>React\u3067\u898b\u3089\u308c\u308b\u4e00\u822c\u7684\u306a\u30a8\u30e9\u30fc\u306e\u4e2d\u306b\u3001\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-jsx\/\">JSX<\/a>\u3092\u4f7f\u7528\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3001React\u304c\u9069\u5207\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u307e\u305f\u306f\u521d\u671f\u5316\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3053\u306e\u30a8\u30e9\u30fc\u3092\u53d6\u308a\u4e0a\u3052\u3001\u539f\u56e0\u3068\u89e3\u6c7a\u7b56\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u306e\u539f\u56e0<\/h2>\n<p>JSX\uff08JavaScript XML\uff09\u306f\u3001<a href=\"https:\/\/kinsta.com\/javascript\/\">JavaScript<\/a>\u3067<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-html\/\">HTML<\/a>\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u305f\u3081\u306e\u69cb\u6587\u62e1\u5f35\u3067\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u306fJSX\u3092\u7406\u89e3\u3057\u307e\u305b\u3093\u304c\u3001Create React App\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u30ad\u30c3\u30c8\u306b\u306f\u3001JSX\u30b3\u30fc\u30c9\u3092\u6709\u52b9\u306aJavaScript\u30b3\u30fc\u30c9\u306b\u5909\u63db\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u3001\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u306b\u7406\u89e3\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f317.0\u4ee5\u524d\u306eReact\u3067\u306f\u3001JSX\u306f\u5909\u63db\u30c4\u30fc\u30eb\u306b\u3088\u3063\u3066\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b<code>React.createElement()<\/code>\u95a2\u6570\u547c\u3073\u51fa\u3057\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u3001React\u8981\u7d20\u3092\u52d5\u4f5c\u3055\u305b\u308b\u306b\u306fReact\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002React v17.0\u304b\u3089\u306f\u3001JSX Transform\u304c\u5c0e\u5165\u3055\u308c\u3066\u304a\u308a\u3001React\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u65b0\u305f\u306a\u30a8\u30f3\u30c8\u30ea\u30dd\u30a4\u30f3\u30c8\u304b\u3089\u5c02\u7528\u306e\u95a2\u6570\u304c\u81ea\u52d5\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3055\u308c\u3001JSX\u3092\u660e\u793a\u7684\u306b\u4f7f\u7528\u3059\u308b\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3067React\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u95a2\u6570\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-jsx\">function App() {\n  return &lt;h1&gt;Welcome to Kinsta!&lt;\/h1&gt;;\n}<\/code><\/pre>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u901a\u5e38\u306eJavaScript\u306b\u5909\u63db\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-jsx\">function App() {\n  return React.createElement('h1', null, 'Welcome to Kinsta!');\n}<\/code><\/pre>\n<p>React\u304c\u672a\u5b9a\u7fa9\u3067\u3042\u308b\u3053\u3068\u304b\u3089\u3001JSX\u4f7f\u7528\u6642\u306b\u306f\u5e38\u306b\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u304c\u6295\u3052\u3089\u308c\u307e\u3059\u3002<\/p>\n\n<h2>\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd51\uff082\u901a\u308a\uff09<\/h2>\n<p>\u89e3\u6c7a\u65b9\u6cd5\u306f\u3001\u4f7f\u7528\u3057\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>React v17\u4ee5\u524d<\/li>\n<li>React v17\u4ee5\u964d<\/li>\n<\/ul>\n<h3>1. Import\u5ba3\u8a00\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u307e\u305f\u306f\u4fee\u6b63\u3059\u308b\uff08React v17\u4ee5\u524d\uff09<\/h3>\n<p>\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eReact\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001&#8217;react&#8217;\u306eImport\u5ba3\u8a00\u304c\u306a\u3044\u3001\u307e\u305f\u306f\u5ba3\u8a00\u306b\u8aa4\u308a\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u6b63\u3057\u3044import\u5ba3\u8a00\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\uff08React\u306e\u300cR\u300d\u306f\u5927\u6587\u5b57\uff09\u3002<\/p>\n<pre><code class=\"language-jsx\">\/\/ \u8aa4\u308a \u274c\nimport react  from 'react';\n\n\/\/ \u6b63\u89e3 \u2705\nimport React  from 'react';<\/code><\/pre>\n<p>\u95a2\u6570\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u901a\u5e38\u306e<a href=\"https:\/\/kinsta.com\/jp\/blog\/errors-in-javascript\/\">JavaScript<\/a>\u306b\u5909\u63db\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-jsx\">import React  from 'react';\n\nfunction App() {\n  return React.createElement('h1', null, 'Kinsta\u3078\u3088\u3046\u3053\u305d\uff01');\n}<\/code><\/pre>\n<h3>2. ESLint\u306e\u8a2d\u5b9a\u3092\u66f4\u65b0\u3059\u308b\uff08React v17\u4ee5\u964d\uff09<\/h3>\n<p>React v17.0\u306b\u306f\u3001<a href=\"https:\/\/legacy.reactjs.org\/blog\/2020\/09\/22\/introducing-the-new-jsx-transform.html\" target=\"_blank\" rel=\"noopener noreferrer\">JSX Transform<\/a>\u304c\u5c0e\u5165\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001React\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u65b0\u305f\u306a\u30a8\u30f3\u30c8\u30ea\u30dd\u30a4\u30f3\u30c8\u304b\u3089\u3001\u7279\u5225\u306a\u95a2\u6570\u3092\u81ea\u52d5\u7684\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u6a5f\u80fd\u3067\u3042\u308a\u3001JSX\u3092\u660e\u793a\u7684\u306b\u4f7f\u7528\u3059\u308b\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3067React\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u305b\u305a\u306b\u6e08\u307f\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u95a2\u6570\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-jsx\">function App() {\n  return &lt;h1&gt;Kinsta\u3078\u3088\u3046\u3053\u305d\uff01&lt;\/h1&gt;;\n}<\/code><\/pre>\n<p>JSX Transform\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-jsx\">\/\/ \u30b3\u30f3\u30d1\u30a4\u30e9\u306b\u3088\u3063\u3066\u633f\u5165\uff08\u81ea\u5206\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u306a\u3057\uff09\nimport {jsx as _jsx} from 'react\/jsx-runtime';\n\nfunction App() {\n  return _jsx('h1', { children: 'Kinsta\u3078\u3088\u3046\u3053\u305d\uff01' });\n}<\/code><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001JSX\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306bReact\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002<strong>package.json<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001React\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u3082\u3053\u306e\u30a8\u30e9\u30fc\u304c\u6d88\u3048\u306a\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/www.npmjs.com\/package\/eslint-config-react-app\" target=\"_blank\" rel=\"noopener noreferrer\">ESLint\u306e\u8a2d\u5b9a<\/a>\u3092\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001\u53b3\u5bc6\u306b\u306fReact\u30a8\u30e9\u30fc\u3067\u306f\u306a\u304f\u3001ESLint\u30a8\u30e9\u30fc\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>\u6ce8<\/strong>\uff09React\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067ESLint\u306e\u3088\u3046\u306a\u30ea\u30f3\u30c8\u30c4\u30fc\u30eb\u3092\u983b\u7e41\u306b\u4f7f\u7528\u3059\u308b\u76ee\u7684\u306f\u3001\u30b3\u30fc\u30c9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u73fe\u5728\u307e\u305f\u306f\u5c06\u6765\u7684\u306b\u30b3\u30fc\u30c9\u3092\u58ca\u3059\u53ef\u80fd\u6027\u306e\u3042\u308b\u6f5c\u5728\u7684\u306a\u30a8\u30e9\u30fc\u3092\u691c\u51fa\u3059\u308b\u3053\u3068\u306b\u3042\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3067JSX\u3092\u691c\u51fa\u3059\u308b\u3068\u3001React\u3092\u5f37\u5236\u7684\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u304a\u4f7f\u3044\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304cv17.0\u4ee5\u4e0a\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u4e0a\u3067\u3001React\u3067JSX\u3092\u4f7f\u7528\u3059\u308b\u969b\u306bReact\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30eb\u30fc\u30eb\u3092\u7121\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>ESLint\u306e\u8a2d\u5b9a\u3092\u66f4\u65b0\u3059\u308b\u65b9\u6cd5\u306f\u5927\u304d\u304f\u5206\u3051\u30662\u3064\u3042\u308a\u307e\u3059\u3002<strong>.eslintrc.js<\/strong>\u307e\u305f\u306f<strong>.eslintrc.json<\/strong>\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u5834\u5408\u3001<strong>.eslintrc.js<\/strong>\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u30eb\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-json\">\"rules\": {\n  \/\/ ...\n  \"react\/react-in-jsx-scope\": \"off\",\n  \"react\/jsx-uses-react\": \"off\",\n }<\/code><\/pre>\n<p>\u3069\u3061\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u306a\u3044\u5834\u5408\u306f\u3001<strong>package.json<\/strong>\u30d5\u30a1\u30a4\u30eb\u306e<code>eslintConfig<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-json\">{\n  \"name\": \"quotes-circle\",\n  \/\/ ...\n  \"dependencies\": {\n    \/\/ ...\n  },\n  \"eslintConfig\": {\n    \"extends\": [\n      \"react-app\",\n      \"react-app\/jest\"\n    ],\n    \"rules\": {\n      \"react\/jsx-uses-react\": \"off\",\n      \"react\/react-in-jsx-scope\": \"off\"\n    }\n  },\n}<\/code><\/pre>\n<p>\u4e0a\u8a18\u3067\u306f\u3001<a href=\"https:\/\/github.com\/jsx-eslint\/eslint-plugin-react\/blob\/master\/docs\/rules\/react-in-jsx-scope.md\" target=\"_blank\" rel=\"noopener noreferrer\">react-in-jsx-scope<\/a>\u30eb\u30fc\u30eb\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001React\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u5931\u6557\u3057\u3066\u3082ESLint\u304c\u30a8\u30e9\u30fc\u3092\u6295\u3052\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u308c\u3067\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u304c\u89e3\u6d88\u3055\u308c\u307e\u3059\u304c\u3001\u4f55\u304b\u4ed6\u306e\u539f\u56e0\u306b\u3088\u3063\u3066\u30a8\u30e9\u30fc\u304c\u6d88\u3048\u306a\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u3060\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u9032\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u65b9\u6cd52\uff083\u901a\u308a\uff09<\/h2>\n<p>\u30a8\u30e9\u30fc\u304c\u307e\u3060\u89e3\u6d88\u3055\u308c\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b3\u3064\u306e\u89e3\u6c7a\u7b56\u3092\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>1. React\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3059\u308b<\/h3>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001<strong>react\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">\/\/ npm\nnpm install react-scripts@latest\n\n\/\/ yarn\nyarn add react-scripts@latest<\/code><\/pre>\n<h3>2. Node_modules\u30d5\u30a9\u30eb\u30c0\u3068package-lock.json\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b<\/h3>\n<p>\u4f9d\u5b58\u95a2\u4fc2\u306e\u4e00\u90e8\u304c\u8aa4\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u53ef\u80fd\u6027\u3082\u3042\u308b\u305f\u3081\u3001<strong>node_modules<\/strong>\u30d5\u30a9\u30eb\u30c0\u3068<strong>package-lock.json<\/strong>\u30d5\u30a1\u30a4\u30eb\uff08<strong>package.json<\/strong>\u3067\u306f\u306a\u3044\uff09\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u4fee\u6b63\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u65b0\u305f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-bash\">npm install<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u958b\u767a\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<h3>3. React\u3068React-Dom\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3059\u308b<\/h3>\n<p>\u6700\u5f8c\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<strong>react<\/strong>\u3068<strong>react-dom<\/strong>\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u66f4\u65b0\u3059\u308b\u306e\u3082\u6709\u52b9\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">\/\/ npm\nnpm install react@latest react-dom@latest\n\n\/\/ TypeScript\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\nnpm install --save-dev @types\/react@latest @types\/react-dom@latest\n\n\/\/ \u3082\u3057\u304f\u306f\n\n\/\/ yarn\nyarn add react@latest react-dom@latest\n\n\/\/ TypeScript\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\nyarn add @types\/react@latest @types\/react-dom@latest --dev<\/code><\/pre>\n<p>\u3053\u308c\u3067\u78ba\u5b9f\u306b\u30a8\u30e9\u30fc\u304c\u6d88\u3048\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u306f\u3001React\u3092\u4f7f\u7528\u3059\u308b<a href=\"https:\/\/kinsta.com\/jp\/blog\/types-of-developers\/\">\u958b\u767a\u8005<\/a>\u3067\u3042\u308c\u3070\u3001\u5341\u5206\u306b\u906d\u9047\u3059\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u30a8\u30e9\u30fc\u3067\u3059\u3002React v17\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u5185\u3067JSX\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001React\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u9069\u5207\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3001\u307e\u305f\u306f\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u767a\u751f\u3057\u307e\u3059\u3002React v17\u306e\u4e0a\u4f4d\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001ESLint\u306e\u8a2d\u5b9a\u304c\u30a8\u30e9\u30fc\u3092\u8fd4\u3059\u5834\u5408\u3001<strong>node_modules<\/strong>\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u4f9d\u5b58\u95a2\u4fc2\u304c\u9593\u9055\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u767a\u751f\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<\/p>\n<p>React\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u3001\u3053\u306e\u30a8\u30e9\u30fc\u306e\u89e3\u6c7a\u65b9\u6cd5\u304c\u7570\u306a\u308b\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3057\u305f\u7d4c\u9a13\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\uff08\u3082\u3057\u305d\u3046\u3067\u3042\u308c\u3070\uff09\u3069\u306e\u3088\u3046\u306b\u89e3\u6c7a\u3057\u307e\u3057\u305f\u304b\uff1f\u4ee5\u4e0b\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u305c\u3072\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>React\u3092\u4f7f\u3063\u305f\u4f5c\u696d\u306f\u6642\u306b\u8907\u96d1\u3067\u3059\u304c\u3001\u7406\u89e3\u3057\u96e3\u3044\u30a8 &#8230;<\/p>\n","protected":false},"author":287,"featured_media":44508,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[802,803],"class_list":["post-44507","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-react","topic-react-errors"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c&#039;React&#039; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\uff5cKinsta\u00ae<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300c&#039;React&#039; must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3092\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\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:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c&#039;React&#039; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300c&#039;React&#039; must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3092\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-13T06:32:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-01T19:45:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"6084\" \/>\n\t<meta property=\"og:image:height\" content=\"3042\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Joel Olawanle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300c&#039;React&#039; must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3092\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@olawanle_joel\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joel Olawanle\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/\"},\"author\":{\"name\":\"Joel Olawanle\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/efa7de30245ca15be5ce1dcacff89c07\"},\"headline\":\"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\",\"datePublished\":\"2023-12-13T06:32:57+00:00\",\"dateModified\":\"2025-10-01T19:45:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/\"},\"wordCount\":186,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/\",\"name\":\"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c'React' must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\uff5cKinsta\u00ae\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg\",\"datePublished\":\"2023-12-13T06:32:57+00:00\",\"dateModified\":\"2025-10-01T19:45:34+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300c'React' must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3092\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg\",\"width\":6084,\"height\":3042},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"React\u30a8\u30e9\u30fc\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/react-errors\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/efa7de30245ca15be5ce1dcacff89c07\",\"name\":\"Joel Olawanle\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/051bf577ce2c837846a1db9eef184758?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/051bf577ce2c837846a1db9eef184758?s=96&d=mm&r=g\",\"caption\":\"Joel Olawanle\"},\"description\":\"Joel is a Frontend developer working at Kinsta as a Technical Editor. He is a passionate teacher with love for open source and has written over 300 technical articles majorly around JavaScript and it's frameworks.\",\"sameAs\":[\"https:\/\/joelolawanle.com\/\",\"https:\/\/www.linkedin.com\/in\/olawanlejoel\/\",\"https:\/\/x.com\/olawanle_joel\",\"https:\/\/www.youtube.com\/@joelolawanle\"],\"gender\":\"male\",\"knowsAbout\":[\"JavaScript\",\"React\",\"Next.js\"],\"knowsLanguage\":[\"English\"],\"jobTitle\":\"Technical Editor\",\"worksFor\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/joelolawanle\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c'React' must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\uff5cKinsta\u00ae","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300c'React' must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3092\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\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:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c'React' must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300c'React' must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3092\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2023-12-13T06:32:57+00:00","article_modified_time":"2025-10-01T19:45:34+00:00","og_image":[{"width":6084,"height":3042,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg","type":"image\/jpeg"}],"author":"Joel Olawanle","twitter_card":"summary_large_image","twitter_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300c'React' must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3092\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg","twitter_creator":"@olawanle_joel","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Joel Olawanle","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/"},"author":{"name":"Joel Olawanle","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/efa7de30245ca15be5ce1dcacff89c07"},"headline":"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f","datePublished":"2023-12-13T06:32:57+00:00","dateModified":"2025-10-01T19:45:34+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/"},"wordCount":186,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/","url":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/","name":"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c'React' must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\uff5cKinsta\u00ae","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg","datePublished":"2023-12-13T06:32:57+00:00","dateModified":"2025-10-01T19:45:34+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300c'React' must be in scope when using JSX\u300d\uff08JSX\u306e\u4f7f\u7528\u6642\u306b\u306fReact\u304c\u30b9\u30b3\u30fc\u30d7\u5185\u306b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\uff09\u3092\u7c21\u5358\u306b\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/04\/react-must-be-in-scope-when-using-jsx.jpg","width":6084,"height":3042},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/react-must-be-in-scope-when-using-jsx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"React\u30a8\u30e9\u30fc","item":"https:\/\/kinsta.com\/jp\/topics\/react-errors\/"},{"@type":"ListItem","position":3,"name":"\u30105\u3064\u306e\u65b9\u6cd5\u3011\u300c&#8217;React&#8217; must be in scope when using JSX\u300d\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/efa7de30245ca15be5ce1dcacff89c07","name":"Joel Olawanle","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/051bf577ce2c837846a1db9eef184758?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/051bf577ce2c837846a1db9eef184758?s=96&d=mm&r=g","caption":"Joel Olawanle"},"description":"Joel is a Frontend developer working at Kinsta as a Technical Editor. He is a passionate teacher with love for open source and has written over 300 technical articles majorly around JavaScript and it's frameworks.","sameAs":["https:\/\/joelolawanle.com\/","https:\/\/www.linkedin.com\/in\/olawanlejoel\/","https:\/\/x.com\/olawanle_joel","https:\/\/www.youtube.com\/@joelolawanle"],"gender":"male","knowsAbout":["JavaScript","React","Next.js"],"knowsLanguage":["English"],"jobTitle":"Technical Editor","worksFor":"Kinsta","url":"https:\/\/kinsta.com\/jp\/blog\/author\/joelolawanle\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/44507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/287"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=44507"}],"version-history":[{"count":15,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/44507\/revisions"}],"predecessor-version":[{"id":53661,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/44507\/revisions\/53661"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/es"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/se"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/translations\/dk"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44507\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/44508"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=44507"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=44507"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=44507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}