Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/410.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
Javascript NextJS';s-JSX变换';s添加缺少的react导入代码MOD与react';s删除未使用的代码mod_Javascript_Reactjs_Next.js - Fatal编程技术网

Javascript NextJS';s-JSX变换';s添加缺少的react导入代码MOD与react';s删除未使用的代码mod

Javascript NextJS';s-JSX变换';s添加缺少的react导入代码MOD与react';s删除未使用的代码mod,javascript,reactjs,next.js,Javascript,Reactjs,Next.js,在NextJS的文档中,它提到要运行codemod从“React”添加import React用于JSX转换功能。然而,在ReactJS的博客上,他们提到如果在文件中找到“额外的”import-React,则删除它,因为它对于JSX转换是不必要的。哪一个是正确的 在NextJS的github上问了相同的问题-

在NextJS的文档中,它提到要运行codemod从“React”添加
import React用于JSX转换功能。然而,在ReactJS的博客上,他们提到如果在文件中找到“额外的”
import-React
,则删除它,因为它对于JSX转换是不必要的。哪一个是正确的

在NextJS的github上问了相同的问题-