how to use useEffect in server actions? that'll stop SSR then
Answered
Sloth bear posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Sloth bearOP
how can I do that? then SSR will stop, why am I using react then?
8 Replies
![Avatar](https://cdn.discordapp.com/avatars/755810867878297610/5ab9ece60bc14c554a7376a599d3deb3.webp?size=256)
Ping me for help
why not create another file for it
![Avatar](https://cdn.discordapp.com/avatars/755810867878297610/5ab9ece60bc14c554a7376a599d3deb3.webp?size=256)
Ping me for help
another use client file, import it to use server file
Answer
![Avatar](https://cdn.discordapp.com/avatars/755810867878297610/5ab9ece60bc14c554a7376a599d3deb3.webp?size=256)
Ping me for help
SSR will be on
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Sloth bearOP
Oh sorry, didn't think of it. How stupid it was of me
![Avatar](https://cdn.discordapp.com/avatars/755810867878297610/5ab9ece60bc14c554a7376a599d3deb3.webp?size=256)
Ping me for help
Can you mark my message as a solution by going to apps>mark solution
thanks
![Avatar](https://cdn.discordapp.com/embed/avatars/0.png)
Sloth bearOP
And thanks for quick response
![Avatar](https://cdn.discordapp.com/avatars/755810867878297610/5ab9ece60bc14c554a7376a599d3deb3.webp?size=256)
Ping me for help
feel free to ping me after creating a #help-forum when you need any help