Skip to content

feat: add rspack rsc example#440

Open
SyMind wants to merge 2 commits intomainfrom
rspack-rsc-example
Open

feat: add rspack rsc example#440
SyMind wants to merge 2 commits intomainfrom
rspack-rsc-example

Conversation

@SyMind
Copy link
Copy Markdown
Contributor

@SyMind SyMind commented Apr 17, 2026

Rspack React Server Components Example

This example is a server-driven app built with Rspack and React Server Components (RSC). In this setup, routing happens on the server, delivering HTML on initial page load, and client side rendering on subsequent navigations. It also demonstrates React Server Actions to perform mutations, both by calling as a function and as the target of an HTML form.

import App from './App';

export function render() {
console.log('sdfasdfsaf');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be deleted

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the folder name can be rspack-rsc instead of rspack-rsc-examples

"react-server-dom-rspack": "0.0.1-alpha.10",
"run-script-webpack-plugin": "^0.2.3",
"typescript": "^5.9.3",
"webpack-dev-middleware": "^7.4.5",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"devDependencies": {
"@rspack/cli": "2.0.0-beta.0",
"@rspack/core": "2.0.0-beta.0",
"@rspack/dev-server": "^1.2.1",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be v2 RC

"@rspack/cli": "2.0.0-beta.0",
"@rspack/core": "2.0.0-beta.0",
"@rspack/dev-server": "^1.2.1",
"@rspack/plugin-react-refresh": "^1.5.3",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants