Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 1.12 KB

File metadata and controls

16 lines (14 loc) · 1.12 KB

从零写一个mini版React-Server-Component

记录一下学习dan的RSC From Scatch 并自己实现一个React-Server-Component的过程

Steps

  • 1: add JSX stackblitz
  • 2: add components stackblitz
  • 3: add routing stackblitz
  • 4: async components stackblitz
  • 5: preserve state on navigation
    • 5.1: intercept navigations stackblitz
    • 5.2: send JSX over the wire stackblitz
    • 5.3: apply JSX updates on the client stackblitz
      • 5.3.1 fetch JSX from the server
      • 5.3.2 inline the initial JSX into the HTML
  • 6: clean things up