@tobbe.dev/rsc-test
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

RSC Test

This is an npm package intended to test React Server Component implementations.

Currently it includes a single React component, RscForm. The component has the 'use client' directive at the top of the file because internally it uses React's useState(), and so can only be used on the client. RscForm renders a form that takes a form action as a prop. The form action is supposed to be a React Server Action.

The package is published under an organization on purpose, to test that the RSC implementation supports org package names (even with dots in the name).

Example

import { RscForm } from '@tobbe.dev/rsc-test'
import { onSend } from './serverActions'

// ...

  return (
    <RscForm onSend={onSend} />
  )
  
// ...

Readme

Keywords

none

Package Sidebar

Install

npm i @tobbe.dev/rsc-test

Weekly Downloads

114

Version

0.0.5

License

MIT

Unpacked Size

3.9 kB

Total Files

6

Last publish

Collaborators

  • tobbe