next js server
Unanswered
Horned Puffin posted this in #help-forum
Horned PuffinOP
Hi Dear,
I want to make logout button on which I want to clear session of our web , to clear session that method already available.but how can I import that method to used on button in jsx.
How can I do kindly help
I want to make logout button on which I want to clear session of our web , to clear session that method already available.but how can I import that method to used on button in jsx.
How can I do kindly help
17 Replies
Horned PuffinOP
See the code logout method n jsx
Logout method
@Horned Puffin Logout method
Where is the logout file?
Horned PuffinOP
@"use php"
@Horned Puffin See the code logout method n jsx
I'm just so curious if you're actually working for HDFC Bank or just a hobby project lol
@Horned Puffin Logout method
Like its relative path
To import, you basically need to
import { logout } from "./path/to/file"this is a import syntax
Horned PuffinOP
Personal proj
@Horned Puffin solved?
Horned PuffinOP
Yes
@"use php" To import, you basically need to
ts
import { logout } from "./path/to/file"
If this resolved your issue, mark this as a solution