-
Notifications
You must be signed in to change notification settings - Fork 0
Update index.js #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update index.js #70
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,10 +4,7 @@ import { Redirect, useLocation } from '@docusaurus/router' | |
|
|
||
| import config from '../../docusaurus.config' | ||
|
|
||
| const { defaultDocsLandingPage } = config.customFields | ||
|
|
||
| function Home() { | ||
| const location = useLocation() | ||
| = useLocation() | ||
| const defau | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The function 'Home' is incomplete and lacks a proper return statement or body. Suggestion: function Home() {
const location = useLocation();
// Add logic or return statement here
} |
||
|
|
||
| export default Home | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The export statement is incomplete and should export a properly defined component. Suggestion: export default Home; |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line seems to be incomplete and causes a syntax error. The assignment operator '=' is used without a variable name.
Suggestion: