Is there any way to make client Toast component to use on server side page
Unanswered
Thrianta posted this in #help-forum
ThriantaOP
Im making a profile page everything here is SSR . now if user not logged in it will redirect to the login page. here i also want to give user a toast msg with react Toastofy or sooner that user needs to login to access profile. But i have to mark the page as client to do it.it there any way to make toast component to use it on server side page .
2 Replies
@Thrianta Im making a profile page everything here is SSR . now if user not logged in it will redirect to the login page. here i also want to give user a toast msg with react Toastofy or sooner that user needs to login to access profile. But i have to mark the page as client to do it.it there any way to make toast component to use it on server side page .
create the component in separate file then import it to the server component