Skip to content

Inconsistent useState Usage in index.js#536

Open
akash-manna-sky wants to merge 1 commit intojenkins-infra:mainfrom
akash-manna-sky:inconsistent-useState-usage
Open

Inconsistent useState Usage in index.js#536
akash-manna-sky wants to merge 1 commit intojenkins-infra:mainfrom
akash-manna-sky:inconsistent-useState-usage

Conversation

@akash-manna-sky
Copy link

In index.js, there's an inconsistency in how the useState hook is used:

Line 1: useState is imported as a named import from 'react'
Lines 19-20: The code uses React.useState() instead of the imported useState()
This creates unnecessary inconsistency. Since useState is already imported, it should be used directly rather than accessing it through the React namespace.

@akash-manna-sky akash-manna-sky requested a review from a team as a code owner March 6, 2026 14:45
@akash-manna-sky
Copy link
Author

Please review the changes. @krisstern

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