Skip to content

fix: remove unused React imports (#125) - #179

Open
Ankit-kumar17 wants to merge 1 commit into
aboutcode-org:mainfrom
Ankit-kumar17:fix/125-unused-react-imports
Open

fix: remove unused React imports (#125)#179
Ankit-kumar17 wants to merge 1 commit into
aboutcode-org:mainfrom
Ankit-kumar17:fix/125-unused-react-imports

Conversation

@Ankit-kumar17

Copy link
Copy Markdown

Summary

  • The issue identified unused \React\ imports across several files. This PR cleans up these unused imports since modern JSX transforms in Docusaurus 2+ do not require \import React from 'react';\ in scope.
  • Kept explicit React imports where hooks or other React features are actually used (e.g. \useEffect, \useState, \React.cloneElement, etc).
  • Reduces noise in components.

Testing

  • Ran
    pm install\ and
    pm run build\ successfully to ensure no build breakage.

Fixes #125

Removed unused import React from 'react'; imports from multiple components in the website to clean up the codebase and conform to modern React JSX transform rules.
Fixes aboutcode-org#125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup: Removing the unused react import

1 participant