An open API service indexing awesome lists of open source software.

https://github.com/irekrog/rsc-server-data

Get and show data from the server
https://github.com/irekrog/rsc-server-data

next nextjs react react-server-components reactjs rsc

Last synced: 8 months ago
JSON representation

Get and show data from the server

Awesome Lists containing this project

README

          

# rsc-server-data

Get and show data from the server.

## DON'T USE THIS IN PRODUCTION

## Requirements

This is a [React Server Component (RSC)](https://beta.nextjs.org/docs/rendering/server-and-client-components#server-components) and works with [Next.js with App Router](https://beta.nextjs.org/docs/app-directory-roadmap).

## Getting Started

```bash
npm install rsc-server-data
```

or

```bash
yarn add rsc-server-data
```

or

```bash
pnpm add rsc-server-data
```

## Usage

```tsx
import { ServerData } from "rsc-server-data";

const App = () => {
return ;
};
```

## Example
https://github.com/irekrog/rsc-server-data-example

https://rsc-server-data-example.vercel.app/rsc-server-data