Skip to content

fix: reorder imports in Hero.tsx - static import before const declaration - #816

Open
saurabhhhcodes wants to merge 1 commit into
Aditya948351:masterfrom
saurabhhhcodes:fix/DevPath-Web-batch-3
Open

fix: reorder imports in Hero.tsx - static import before const declaration#816
saurabhhhcodes wants to merge 1 commit into
Aditya948351:masterfrom
saurabhhhcodes:fix/DevPath-Web-batch-3

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Bugs fixed:

  • Hero.tsx had import statement after const declaration, violating ES module spec
  • Moved React import to top of file before all non-import declarations

Static import statements must appear before any non-import declarations per ES module spec.
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.

1 participant