Skip to content

Commit

Permalink
"Updated Account.js: changed import to include useEffect, replaced us…
Browse files Browse the repository at this point in the history
…eLayoutEffect with useEffect"
  • Loading branch information
sarthakdev143 committed Oct 7, 2024
1 parent 18e4110 commit 3081bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Components/Account/Account.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import React, { useEffect } from 'react'

const Account = () => {

useLayoutEffect(() => {
useEffect(() => {
alert("This Part is in Under Construction.")
window.location.href = '/';
}, [])
Expand Down

0 comments on commit 3081bf9

Please sign in to comment.