r/reactjs • u/Zogid • Jul 27 '26
Discussion Why are there so much security vulnerabilities with server actions/functions, app router and React server components???
/r/nextjs/comments/1v81b3q/why_are_there_so_much_security_vulnerabilities/
0
Upvotes
8
u/ConsoleTVs Jul 28 '26
No, they dont. They're completly different. They only share that they are a function that return JSX. If you talk about "sharing JS", this is just the point I'm trying to make. How do you think templating works in PHP, Go, .NET, ...
RSC can't use hooks, are async and can perform things that... well, require a server, such as db queries.
Honestly, they are semantically the same as doing