0.0.2 • Published 10 months ago

is-server-only v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

is-server-only

Client components can run on the server if you're using Server Side Rendering (SSR).

This package exports a function that returns true if you're in the react-server environment and false otherwise. You can perform a check to know if your components are server-only or not and call different functions or return different content accordingly.

Based on server-only

0.0.2

10 months ago

0.0.1

10 months ago