Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0053416
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[POS2] POSminoralways2023-09-07 14:492023-09-07 14:49
ReporterVitaliy MaletsView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0053416: Remove redundant React imports

DescriptionWe 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 [^]
Steps To Reproduceopen any react component in the project
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2023-09-07 14:49 Vitaliy Malets New Issue
2023-09-07 14:49 Vitaliy Malets Assigned To => Retail
2023-09-07 14:49 Vitaliy Malets Triggers an Emergency Pack => No


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker