On NextJS's doc add-missing-react-import , it mentions to run the codemod to add import React from "react";
for JSX Transform capabilities. However, on ReactJS's blog removing-unused-react-imports , they mention removing the "extra" import React
if its found in the file since its unnecessary for JSX Transforms. Which one is correct?
Asked identical question on NextJS's github - https://github.com/vercel/next.js/discussions/24877
https://stackoverflow.com/questions/67443449/nextjss-jsx-transforms-add-missing-react-import-codemod-contradicts-reacts-re May 08, 2021 at 10:07AM
没有评论:
发表评论