epicweb-dev/react-server-components
关于
通过使用 React Server Components 和 Server Actions 构建框架,理解它们的工作原理。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React Server Components and Functions
Understand React Server Components and Server Functions by building a framework with them.In this workshop we'll be building a framework built on React Server Components and Server Functions from scratch. No build tools. No TypeScript, no Vite, no JSX. Just the Browser, Node.js, and React. This is how you develop a deep understanding of something. Let's go!
Prerequisites
- Deep experience with React and features like Suspense and useDeferredValue
- Some experience with Node.js will be helpful
Pre-workshop Resources
Here are some resources you can read before taking the workshop to get you up to speed on some of the tools and concepts we'll be covering:
- React Suspense Workshop
- "Mind The Gap" by Ryan Florence at Big Sky Dev Con 2024
- React for Two Computers - Dan Abramov at React Conf 2024
- Introducing Zero-Bundle-Size React Server Components
- React Server Components RFC
- "React from Another Dimension" by Dan Abramov at Remix Conf 2023
System Requirements
All of these must be available in your PATH. To verify things are set up
properly, you can run this:
git --version
node --version
npm --version
If you have trouble with any of these, learn more about the PATH environment variable and how to fix it here for windows or mac/linux.
Setup
Use the Epic Workshop CLI to get this setup:
npx --yes epicshop@latest add react-server-components
If you experience errors here, please open an issue with as many details as you can offer.
Starting the app
Once you have the setup finished, you can start the app with:
npm start
The Workshop App
Learn all about the workshop app on the Epic Web Getting Started Guide.
Credits
This workshop is heavily influenced by @sebmarkbage's work in this commit. Also, shout-out to @gaearon and @rickhanlonii for their help on this as well.
探索相关项目
加载中…
