Openbravo Issue Tracking System - POS2
View Issue Details
0053416POS2POSpublic2023-09-07 14:492023-09-07 14:49
Vitaliy Malets 
Retail 
normalminoralways
newopen 
5
 
 
No
0053416: Remove redundant React imports
We use version 17 of React. This version doesn't require to import React in each component any more.
 
https://dev.to/titungdup/you-no-longer-need-to-import-react-from-react-3pbj [^]

The official site provides a script to remove all of them from the project.

https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#removing-unused-react-imports [^]

But current ESLint settings require this import. So maybe it makes sense a little bit change the ESLint config and remove all redundant imports to make the projet a bit lighter?

https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html#eslint [^]
open any react component in the project
No tags attached.
Issue History
2023-09-07 14:49Vitaliy MaletsNew Issue
2023-09-07 14:49Vitaliy MaletsAssigned To => Retail
2023-09-07 14:49Vitaliy MaletsTriggers an Emergency Pack => No

There are no notes attached to this issue.