Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 在Create React应用程序中,我应该在何处以及如何添加JSON-LD模式?_Reactjs_Schema_Json Ld - Fatal编程技术网

Reactjs 在Create React应用程序中,我应该在何处以及如何添加JSON-LD模式?

Reactjs 在Create React应用程序中,我应该在何处以及如何添加JSON-LD模式?,reactjs,schema,json-ld,Reactjs,Schema,Json Ld,我已经在我的项目中安装了,但是我找不到在我的react应用程序中添加JSON-LD模式的方法/指南。像这样使用它 <script type='application/ld+json'> {` { "@context": "https://schema.org/" } `}</script> {` { “@context”:”https://schema.org/" } `}

我已经在我的项目中安装了,但是我找不到在我的react应用程序中添加JSON-LD模式的方法/指南。

像这样使用它

  <script type='application/ld+json'>
      {`
   {
    "@context": "https://schema.org/"
   }  `}</script>

{`
{
“@context”:”https://schema.org/"
}  `}