is-server-only
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-server-only

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

1.41 kB

Total Files

5

Last publish

Collaborators

  • jazsouf